blob: 558606e0353359873cba8ef4c955c9fc92fd0c9f [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")
Austin Schuhe89fa2d2019-08-14 20:24:23 -07008class BookReader : Struct() {
9
10 fun __init(_i: Int, _bb: ByteBuffer) {
11 __reset(_i, _bb)
12 }
13 fun __assign(_i: Int, _bb: ByteBuffer) : BookReader {
14 __init(_i, _bb)
15 return this
16 }
17 val booksRead : Int get() = bb.getInt(bb_pos + 0)
18 fun mutateBooksRead(booksRead: Int) : ByteBuffer = bb.putInt(bb_pos + 0, booksRead)
19 companion object {
20 fun createBookReader(builder: FlatBufferBuilder, booksRead: Int) : Int {
21 builder.prep(4, 4)
22 builder.putInt(booksRead)
23 return builder.offset()
24 }
25 }
26}