Home | History | Annotate | Download | only in NamespaceB
      1 // automatically generated by the FlatBuffers compiler, do not modify
      2 
      3 package NamespaceB
      4 
      5 import (
      6 	flatbuffers "github.com/google/flatbuffers/go"
      7 )
      8 
      9 type StructInNestedNS struct {
     10 	_tab flatbuffers.Struct
     11 }
     12 
     13 func (rcv *StructInNestedNS) Init(buf []byte, i flatbuffers.UOffsetT) {
     14 	rcv._tab.Bytes = buf
     15 	rcv._tab.Pos = i
     16 }
     17 
     18 func (rcv *StructInNestedNS) Table() flatbuffers.Table {
     19 	return rcv._tab.Table
     20 }
     21 
     22 func (rcv *StructInNestedNS) A() int32 {
     23 	return rcv._tab.GetInt32(rcv._tab.Pos + flatbuffers.UOffsetT(0))
     24 }
     25 func (rcv *StructInNestedNS) MutateA(n int32) bool {
     26 	return rcv._tab.MutateInt32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n)
     27 }
     28 
     29 func (rcv *StructInNestedNS) B() int32 {
     30 	return rcv._tab.GetInt32(rcv._tab.Pos + flatbuffers.UOffsetT(4))
     31 }
     32 func (rcv *StructInNestedNS) MutateB(n int32) bool {
     33 	return rcv._tab.MutateInt32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n)
     34 }
     35 
     36 func CreateStructInNestedNS(builder *flatbuffers.Builder, a int32, b int32) flatbuffers.UOffsetT {
     37 	builder.Prep(4, 8)
     38 	builder.PrependInt32(b)
     39 	builder.PrependInt32(a)
     40 	return builder.Offset()
     41 }
     42