Lines Matching refs:_bb
35 private ByteBuffer _bb; field in FlatBuffers.FlatBufferBuilder
66 _bb = new ByteBuffer(initialSize); in FlatBufferBuilder()
75 _bb = buffer; in FlatBufferBuilder()
85 _space = _bb.Length; in Clear()
86 _bb.Reset(); in Clear()
106 public int Offset { get { return _bb.Length - _space; } }
110 _bb.PutByte(_space -= size, 0, size); in Pad()
117 _bb.GrowFront(_bb.Length << 1); in GrowBuffer()
133 ((~((int)_bb.Length - _space + additionalBytes)) + 1) & in Prep()
138 var oldBufSize = (int)_bb.Length; in Prep()
140 _space += (int)_bb.Length - oldBufSize; in Prep()
149 _bb.PutByte(_space -= sizeof(byte), (byte)(x ? 1 : 0)); in PutBool()
154 _bb.PutSbyte(_space -= sizeof(sbyte), x); in PutSbyte()
159 _bb.PutByte(_space -= sizeof(byte), x); in PutByte()
164 _bb.PutShort(_space -= sizeof(short), x); in PutShort()
169 _bb.PutUshort(_space -= sizeof(ushort), x); in PutUshort()
174 _bb.PutInt(_space -= sizeof(int), x); in PutInt()
179 _bb.PutUint(_space -= sizeof(uint), x); in PutUint()
184 _bb.PutLong(_space -= sizeof(long), x); in PutLong()
189 _bb.PutUlong(_space -= sizeof(ulong), x); in PutUlong()
194 _bb.PutFloat(_space -= sizeof(float), x); in PutFloat()
206 _space = _bb.Put(_space, x);
219 _space = _bb.Put(_space, x);
225 _bb.PutDouble(_space -= sizeof(double), x); in PutDouble()
561 _bb.PutStringUTF8(_space -= utf8StringLen, s); in CreateString()
581 _space = _bb.Put(_space, chars); in CreateUTF8String()
656 int vt1 = _bb.Length - _vtables[i]; in EndTable()
658 short len = _bb.GetShort(vt1); in EndTable()
659 if (len == _bb.GetShort(vt2)) { in EndTable()
661 if (_bb.GetShort(vt1 + j) != _bb.GetShort(vt2 + j)) { in EndTable()
675 _space = _bb.Length - vtableloc; in EndTable()
677 _bb.PutInt(_space, existingVtable - vtableloc); in EndTable()
692 _bb.PutInt(_bb.Length - vtableloc, Offset - vtableloc); in EndTable()
703 int table_start = _bb.Length - table; in Required()
704 int vtable_start = table_start - _bb.GetInt(table_start); in Required()
705 bool ok = _bb.GetShort(vtable_start + field) != 0; in Required()
727 AddInt(_bb.Length - _space); in Finish()
729 _bb.Position = _space; in Finish()
765 public ByteBuffer DataBuffer { get { return _bb; } }
776 return _bb.ToSizedArray(); in SizedByteArray()