Lines Matching refs:bb_factory
48 ByteBufferFactory bb_factory; // Factory for allocating the internal buffer field in FlatBufferBuilder
58 public FlatBufferBuilder(int initial_size, ByteBufferFactory bb_factory) { in FlatBufferBuilder() argument
59 this(initial_size, bb_factory, null, Utf8.getDefault()); in FlatBufferBuilder()
70 public FlatBufferBuilder(int initial_size, ByteBufferFactory bb_factory, in FlatBufferBuilder() argument
76 this.bb_factory = bb_factory; in FlatBufferBuilder()
82 bb = bb_factory.newByteBuffer(initial_size); in FlatBufferBuilder()
112 public FlatBufferBuilder(ByteBuffer existing_bb, ByteBufferFactory bb_factory) { in FlatBufferBuilder() argument
113 this(existing_bb.capacity(), bb_factory, existing_bb, Utf8.getDefault()); in FlatBufferBuilder()
137 public FlatBufferBuilder init(ByteBuffer existing_bb, ByteBufferFactory bb_factory){ in init() argument
138 this.bb_factory = bb_factory; in init()
227 static ByteBuffer growByteBuffer(ByteBuffer bb, ByteBufferFactory bb_factory) { in growByteBuffer() argument
233 ByteBuffer nbb = bb_factory.newByteBuffer(new_buf_size); in growByteBuffer()
277 bb = growByteBuffer(old, bb_factory); in prep()
279 bb_factory.releaseByteBuffer(old); in prep()