blob: fc41473b1d73a3ee8a9cd16400d2352223054e5b [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2
3import java.nio.*
4import kotlin.math.sign
5import com.google.flatbuffers.*
6
7@Suppress("unused")
8@ExperimentalUnsignedTypes
9class BookReader : Struct() {
10
11 fun __init(_i: Int, _bb: ByteBuffer) {
12 __reset(_i, _bb)
13 }
14 fun __assign(_i: Int, _bb: ByteBuffer) : BookReader {
15 __init(_i, _bb)
16 return this
17 }
18 val booksRead : Int get() = bb.getInt(bb_pos + 0)
19 fun mutateBooksRead(booksRead: Int) : ByteBuffer = bb.putInt(bb_pos + 0, booksRead)
20 companion object {
21 fun createBookReader(builder: FlatBufferBuilder, booksRead: Int) : Int {
22 builder.prep(4, 4)
23 builder.putInt(booksRead)
24 return builder.offset()
25 }
26 }
27}