Lines Matching refs:t
14 func (t *Table) Offset(vtableOffset VOffsetT) VOffsetT {
15 vtable := UOffsetT(SOffsetT(t.Pos) - t.GetSOffsetT(t.Pos))
16 if vtableOffset < t.GetVOffsetT(vtable) {
17 return t.GetVOffsetT(vtable + UOffsetT(vtableOffset))
23 func (t *Table) Indirect(off UOffsetT) UOffsetT {
24 return off + GetUOffsetT(t.Bytes[off:])
28 func (t *Table) String(off UOffsetT) string {
29 b := t.ByteVector(off)
34 func (t *Table) ByteVector(off UOffsetT) []byte {
35 off += GetUOffsetT(t.Bytes[off:])
37 length := GetUOffsetT(t.Bytes[off:])
38 return t.Bytes[start : start+length]
43 func (t *Table) VectorLen(off UOffsetT) int {
44 off += t.Pos
45 off += GetUOffsetT(t.Bytes[off:])
46 return int(GetUOffsetT(t.Bytes[off:]))
51 func (t *Table) Vector(off UOffsetT) UOffsetT {
52 off += t.Pos
53 x := off + GetUOffsetT(t.Bytes[off:])
61 func (t *Table) Union(t2 *Table, off UOffsetT) {
62 off += t.Pos
63 t2.Pos = off + t.GetUOffsetT(off)
64 t2.Bytes = t.Bytes
68 func (t *Table) GetBool(off UOffsetT) bool {
69 return GetBool(t.Bytes[off:])
73 func (t *Table) GetByte(off UOffsetT) byte {
74 return GetByte(t.Bytes[off:])
78 func (t *Table) GetUint8(off UOffsetT) uint8 {
79 return GetUint8(t.Bytes[off:])
83 func (t *Table) GetUint16(off UOffsetT) uint16 {
84 return GetUint16(t.Bytes[off:])
88 func (t *Table) GetUint32(off UOffsetT) uint32 {
89 return GetUint32(t.Bytes[off:])
93 func (t *Table) GetUint64(off UOffsetT) uint64 {
94 return GetUint64(t.Bytes[off:])
98 func (t *Table) GetInt8(off UOffsetT) int8 {
99 return GetInt8(t.Bytes[off:])
103 func (t *Table) GetInt16(off UOffsetT) int16 {
104 return GetInt16(t.Bytes[off:])
108 func (t *Table) GetInt32(off UOffsetT) int32 {
109 return GetInt32(t.Bytes[off:])
113 func (t *Table) GetInt64(off UOffsetT) int64 {
114 return GetInt64(t.Bytes[off:])
118 func (t *Table) GetFloat32(off UOffsetT) float32 {
119 return GetFloat32(t.Bytes[off:])
123 func (t *Table) GetFloat64(off UOffsetT) float64 {
124 return GetFloat64(t.Bytes[off:])
128 func (t *Table) GetUOffsetT(off UOffsetT) UOffsetT {
129 return GetUOffsetT(t.Bytes[off:])
133 func (t *Table) GetVOffsetT(off UOffsetT) VOffsetT {
134 return GetVOffsetT(t.Bytes[off:])
138 func (t *Table) GetSOffsetT(off UOffsetT) SOffsetT {
139 return GetSOffsetT(t.Bytes[off:])
145 func (t *Table) GetBoolSlot(slot VOffsetT, d bool) bool {
146 off := t.Offset(slot)
151 return t.GetBool(t.Pos + UOffsetT(off))
157 func (t *Table) GetByteSlot(slot VOffsetT, d byte) byte {
158 off := t.Offset(slot)
163 return t.GetByte(t.Pos + UOffsetT(off))
169 func (t *Table) GetInt8Slot(slot VOffsetT, d int8) int8 {
170 off := t.Offset(slot)
175 return t.GetInt8(t.Pos + UOffsetT(off))
181 func (t *Table) GetUint8Slot(slot VOffsetT, d uint8) uint8 {
182 off := t.Offset(slot)
187 return t.GetUint8(t.Pos + UOffsetT(off))
193 func (t *Table) GetInt16Slot(slot VOffsetT, d int16) int16 {
194 off := t.Offset(slot)
199 return t.GetInt16(t.Pos + UOffsetT(off))
205 func (t *Table) GetUint16Slot(slot VOffsetT, d uint16) uint16 {
206 off := t.Offset(slot)
211 return t.GetUint16(t.Pos + UOffsetT(off))
217 func (t *Table) GetInt32Slot(slot VOffsetT, d int32) int32 {
218 off := t.Offset(slot)
223 return t.GetInt32(t.Pos + UOffsetT(off))
229 func (t *Table) GetUint32Slot(slot VOffsetT, d uint32) uint32 {
230 off := t.Offset(slot)
235 return t.GetUint32(t.Pos + UOffsetT(off))
241 func (t *Table) GetInt64Slot(slot VOffsetT, d int64) int64 {
242 off := t.Offset(slot)
247 return t.GetInt64(t.Pos + UOffsetT(off))
253 func (t *Table) GetUint64Slot(slot VOffsetT, d uint64) uint64 {
254 off := t.Offset(slot)
259 return t.GetUint64(t.Pos + UOffsetT(off))
265 func (t *Table) GetFloat32Slot(slot VOffsetT, d float32) float32 {
266 off := t.Offset(slot)
271 return t.GetFloat32(t.Pos + UOffsetT(off))
277 func (t *Table) GetFloat64Slot(slot VOffsetT, d float64) float64 {
278 off := t.Offset(slot)
283 return t.GetFloat64(t.Pos + UOffsetT(off))
289 func (t *Table) GetVOffsetTSlot(slot VOffsetT, d VOffsetT) VOffsetT {
290 off := t.Offset(slot)
298 func (t *Table) MutateBool(off UOffsetT, n bool) bool {
299 WriteBool(t.Bytes[off:], n)
304 func (t *Table) MutateByte(off UOffsetT, n byte) bool {
305 WriteByte(t.Bytes[off:], n)
310 func (t *Table) MutateUint8(off UOffsetT, n uint8) bool {
311 WriteUint8(t.Bytes[off:], n)
316 func (t *Table) MutateUint16(off UOffsetT, n uint16) bool {
317 WriteUint16(t.Bytes[off:], n)
322 func (t *Table) MutateUint32(off UOffsetT, n uint32) bool {
323 WriteUint32(t.Bytes[off:], n)
328 func (t *Table) MutateUint64(off UOffsetT, n uint64) bool {
329 WriteUint64(t.Bytes[off:], n)
334 func (t *Table) MutateInt8(off UOffsetT, n int8) bool {
335 WriteInt8(t.Bytes[off:], n)
340 func (t *Table) MutateInt16(off UOffsetT, n int16) bool {
341 WriteInt16(t.Bytes[off:], n)
346 func (t *Table) MutateInt32(off UOffsetT, n int32) bool {
347 WriteInt32(t.Bytes[off:], n)
352 func (t *Table) MutateInt64(off UOffsetT, n int64) bool {
353 WriteInt64(t.Bytes[off:], n)
358 func (t *Table) MutateFloat32(off UOffsetT, n float32) bool {
359 WriteFloat32(t.Bytes[off:], n)
364 func (t *Table) MutateFloat64(off UOffsetT, n float64) bool {
365 WriteFloat64(t.Bytes[off:], n)
370 func (t *Table) MutateUOffsetT(off UOffsetT, n UOffsetT) bool {
371 WriteUOffsetT(t.Bytes[off:], n)
376 func (t *Table) MutateVOffsetT(off UOffsetT, n VOffsetT) bool {
377 WriteVOffsetT(t.Bytes[off:], n)
382 func (t *Table) MutateSOffsetT(off UOffsetT, n SOffsetT) bool {
383 WriteSOffsetT(t.Bytes[off:], n)
388 func (t *Table) MutateBoolSlot(slot VOffsetT, n bool) bool {
389 if off := t.Offset(slot); off != 0 {
390 t.MutateBool(t.Pos+UOffsetT(off), n)
398 func (t *Table) MutateByteSlot(slot VOffsetT, n byte) bool {
399 if off := t.Offset(slot); off != 0 {
400 t.MutateByte(t.Pos+UOffsetT(off), n)
408 func (t *Table) MutateInt8Slot(slot VOffsetT, n int8) bool {
409 if off := t.Offset(slot); off != 0 {
410 t.MutateInt8(t.Pos+UOffsetT(off), n)
418 func (t *Table) MutateUint8Slot(slot VOffsetT, n uint8) bool {
419 if off := t.Offset(slot); off != 0 {
420 t.MutateUint8(t.Pos+UOffsetT(off), n)
428 func (t *Table) MutateInt16Slot(slot VOffsetT, n int16) bool {
429 if off := t.Offset(slot); off != 0 {
430 t.MutateInt16(t.Pos+UOffsetT(off), n)
438 func (t *Table) MutateUint16Slot(slot VOffsetT, n uint16) bool {
439 if off := t.Offset(slot); off != 0 {
440 t.MutateUint16(t.Pos+UOffsetT(off), n)
448 func (t *Table) MutateInt32Slot(slot VOffsetT, n int32) bool {
449 if off := t.Offset(slot); off != 0 {
450 t.MutateInt32(t.Pos+UOffsetT(off), n)
458 func (t *Table) MutateUint32Slot(slot VOffsetT, n uint32) bool {
459 if off := t.Offset(slot); off != 0 {
460 t.MutateUint32(t.Pos+UOffsetT(off), n)
468 func (t *Table) MutateInt64Slot(slot VOffsetT, n int64) bool {
469 if off := t.Offset(slot); off != 0 {
470 t.MutateInt64(t.Pos+UOffsetT(off), n)
478 func (t *Table) MutateUint64Slot(slot VOffsetT, n uint64) bool {
479 if off := t.Offset(slot); off != 0 {
480 t.MutateUint64(t.Pos+UOffsetT(off), n)
488 func (t *Table) MutateFloat32Slot(slot VOffsetT, n float32) bool {
489 if off := t.Offset(slot); off != 0 {
490 t.MutateFloat32(t.Pos+UOffsetT(off), n)
498 func (t *Table) MutateFloat64Slot(slot VOffsetT, n float64) bool {
499 if off := t.Offset(slot); off != 0 {
500 t.MutateFloat64(t.Pos+UOffsetT(off), n)