Lines Matching refs:UOffsetT
14 vtable []UOffsetT
15 objectEnd UOffsetT
16 vtables []UOffsetT
17 head UOffsetT
33 b.head = UOffsetT(initialSize)
35 b.vtables = make([]UOffsetT, 0, 16) // sensible default capacity
55 b.head = UOffsetT(len(b.Bytes))
76 b.vtable = make([]UOffsetT, numfields)
106 func (b *Builder) WriteVtable() (n UOffsetT) {
112 existingVtable := UOffsetT(0)
149 var off UOffsetT
182 b.head = UOffsetT(objectStart)
195 func (b *Builder) EndObject() UOffsetT {
226 func (b *Builder) Head() UOffsetT {
231 func (b *Builder) Offset() UOffsetT {
232 return UOffsetT(len(b.Bytes)) - b.head
261 b.head += UOffsetT(len(b.Bytes) - oldBufSize)
269 if !(UOffsetT(off) <= b.Offset()) {
277 func (b *Builder) PrependUOffsetT(off UOffsetT) {
282 off2 := b.Offset() - off + UOffsetT(SizeUOffsetT)
291 func (b *Builder) StartVector(elemSize, numElems, alignment int) UOffsetT {
300 func (b *Builder) EndVector(vectorNumElems int) UOffsetT {
304 b.PlaceUOffsetT(UOffsetT(vectorNumElems))
311 func (b *Builder) CreateString(s string) UOffsetT {
318 l := UOffsetT(len(s))
327 func (b *Builder) CreateByteString(s []byte) UOffsetT {
334 l := UOffsetT(len(s))
343 func (b *Builder) CreateByteVector(v []byte) UOffsetT {
349 l := UOffsetT(len(v))
520 func (b *Builder) PrependUOffsetTSlot(o int, x, d UOffsetT) {
530 func (b *Builder) PrependStructSlot(voffset int, x, d UOffsetT) {
542 b.vtable[slotnum] = UOffsetT(b.Offset())
547 func (b *Builder) FinishWithFileIdentifier(rootTable UOffsetT, fid []byte) {
563 func (b *Builder) Finish(rootTable UOffsetT) {
571 func vtableEqual(a []UOffsetT, objectStart UOffsetT, b []byte) bool { argument
685 b.head -= UOffsetT(SizeBool)
691 b.head -= UOffsetT(SizeUint8)
697 b.head -= UOffsetT(SizeUint16)
703 b.head -= UOffsetT(SizeUint32)
709 b.head -= UOffsetT(SizeUint64)
715 b.head -= UOffsetT(SizeInt8)
721 b.head -= UOffsetT(SizeInt16)
727 b.head -= UOffsetT(SizeInt32)
733 b.head -= UOffsetT(SizeInt64)
739 b.head -= UOffsetT(SizeFloat32)
745 b.head -= UOffsetT(SizeFloat64)
751 b.head -= UOffsetT(SizeByte)
757 b.head -= UOffsetT(SizeVOffsetT)
763 b.head -= UOffsetT(SizeSOffsetT)
768 func (b *Builder) PlaceUOffsetT(x UOffsetT) {
769 b.head -= UOffsetT(SizeUOffsetT)