FlatBufferBuilder类对象:fbb
属性:
- +DataBuffer: ByteBuffer
- +Offset: int
方法:
- AddBool
- AddByte、AddSbyte
- AddDouble
- AddFloat
- AddInt、AddUint
- AddLong、AddUlong
- AddOffset
- AddShort、AddUShort
- AddStruct
- CreateSharedString
- CreateString
- CreateVectorOfTable
- StartTable、EndTable
- StartVector、EndVector
- Clear
- Finish
字符串
StringOffset类型:Struct
字段:Value
方法:构造函数,用int来构造
StringOffset nameOffset = fbb.CreateString("凯");
数组(Vector)
VectorOffset类型:Struct
字段:Value
方法:构造函数,用int来构造