Lines Matching refs:UOffsetT

14 	vtable    []UOffsetT
15 objectEnd UOffsetT
16 vtables []UOffsetT
17 head UOffsetT
21 sharedStrings map[string]UOffsetT
35 b.head = UOffsetT(initialSize)
37 b.vtables = make([]UOffsetT, 0, 16) // sensible default capacity
56 b.head = UOffsetT(len(b.Bytes))
77 b.vtable = make([]UOffsetT, numfields)
107 func (b *Builder) WriteVtable() (n UOffsetT) {
113 existingVtable := UOffsetT(0)
150 var off UOffsetT
183 b.head = UOffsetT(objectStart)
196 func (b *Builder) EndObject() UOffsetT {
227 func (b *Builder) Head() UOffsetT {
232 func (b *Builder) Offset() UOffsetT {
233 return UOffsetT(len(b.Bytes)) - b.head
262 b.head += UOffsetT(len(b.Bytes) - oldBufSize)
270 if !(UOffsetT(off) <= b.Offset()) {
278 func (b *Builder) PrependUOffsetT(off UOffsetT) {
283 off2 := b.Offset() - off + UOffsetT(SizeUOffsetT)
292 func (b *Builder) StartVector(elemSize, numElems, alignment int) UOffsetT {
301 func (b *Builder) EndVector(vectorNumElems int) UOffsetT {
305 b.PlaceUOffsetT(UOffsetT(vectorNumElems))
313 func (b *Builder) CreateSharedString(s string) UOffsetT {
315 b.sharedStrings = make(map[string]UOffsetT)
326 func (b *Builder) CreateString(s string) UOffsetT {
333 l := UOffsetT(len(s))
342 func (b *Builder) CreateByteString(s []byte) UOffsetT {
349 l := UOffsetT(len(s))
358 func (b *Builder) CreateByteVector(v []byte) UOffsetT {
364 l := UOffsetT(len(v))
535 func (b *Builder) PrependUOffsetTSlot(o int, x, d UOffsetT) {
545 func (b *Builder) PrependStructSlot(voffset int, x, d UOffsetT) {
557 b.vtable[slotnum] = UOffsetT(b.Offset())
562 func (b *Builder) FinishWithFileIdentifier(rootTable UOffsetT, fid []byte) {
578 func (b *Builder) Finish(rootTable UOffsetT) {
586 func vtableEqual(a []UOffsetT, objectStart UOffsetT, b []byte) bool { argument
700 b.head -= UOffsetT(SizeBool)
706 b.head -= UOffsetT(SizeUint8)
712 b.head -= UOffsetT(SizeUint16)
718 b.head -= UOffsetT(SizeUint32)
724 b.head -= UOffsetT(SizeUint64)
730 b.head -= UOffsetT(SizeInt8)
736 b.head -= UOffsetT(SizeInt16)
742 b.head -= UOffsetT(SizeInt32)
748 b.head -= UOffsetT(SizeInt64)
754 b.head -= UOffsetT(SizeFloat32)
760 b.head -= UOffsetT(SizeFloat64)
766 b.head -= UOffsetT(SizeByte)
772 b.head -= UOffsetT(SizeVOffsetT)
778 b.head -= UOffsetT(SizeSOffsetT)
783 func (b *Builder) PlaceUOffsetT(x UOffsetT) {
784 b.head -= UOffsetT(SizeUOffsetT)