Example #1
0
 public BuilderArena(int firstSegmentSizeWords, Capnproto.BuilderArena.AllocationStrategy allocationStrategy)
 {
     this.segments           = new System.Collections.Generic.List <Capnproto.SegmentBuilder>();
     this.nextSize           = firstSegmentSizeWords;
     this.allocationStrategy = allocationStrategy;
     Capnproto.SegmentBuilder segment0 = new Capnproto.SegmentBuilder(java.nio.ByteBuffer.allocate(firstSegmentSizeWords * Capnproto.Constants.BYTES_PER_WORD), this);
     segment0.buffer.order(java.nio.ByteOrder.LITTLE_ENDIAN);
     this.segments.Add(segment0);
 }
 public MessageBuilder(int firstSegmentWords, Capnproto.BuilderArena.AllocationStrategy allocationStrategy)
 {
     this.arena = new Capnproto.BuilderArena(firstSegmentWords, allocationStrategy);
 }