...
1// automatically generated by the FlatBuffers compiler, do not modify
2
3import com.google.flatbuffers.BaseVector
4import com.google.flatbuffers.BooleanVector
5import com.google.flatbuffers.ByteVector
6import com.google.flatbuffers.Constants
7import com.google.flatbuffers.DoubleVector
8import com.google.flatbuffers.FlatBufferBuilder
9import com.google.flatbuffers.FloatVector
10import com.google.flatbuffers.LongVector
11import com.google.flatbuffers.StringVector
12import com.google.flatbuffers.Struct
13import com.google.flatbuffers.Table
14import com.google.flatbuffers.UnionVector
15import java.nio.ByteBuffer
16import java.nio.ByteOrder
17import kotlin.math.sign
18
19@Suppress("unused")
20class BookReader : Struct() {
21
22 fun __init(_i: Int, _bb: ByteBuffer) {
23 __reset(_i, _bb)
24 }
25 fun __assign(_i: Int, _bb: ByteBuffer) : BookReader {
26 __init(_i, _bb)
27 return this
28 }
29 val booksRead : Int get() = bb.getInt(bb_pos + 0)
30 fun mutateBooksRead(booksRead: Int) : ByteBuffer = bb.putInt(bb_pos + 0, booksRead)
31 companion object {
32 fun createBookReader(builder: FlatBufferBuilder, booksRead: Int) : Int {
33 builder.prep(4, 4)
34 builder.putInt(booksRead)
35 return builder.offset()
36 }
37 }
38}
View as plain text