blob: 0d9e1a57cd442ceb6fd0640926c4bb8a4482135d [file] [log] [blame]
Austin Schuh2dd86a92022-09-14 21:19:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2export class BookReader {
3 constructor() {
4 this.bb = null;
5 this.bb_pos = 0;
6 }
7 __init(i, bb) {
8 this.bb_pos = i;
9 this.bb = bb;
10 return this;
11 }
12 booksRead() {
13 return this.bb.readInt32(this.bb_pos);
14 }
15 mutate_books_read(value) {
16 this.bb.writeInt32(this.bb_pos + 0, value);
17 return true;
18 }
19 static getFullyQualifiedName() {
20 return 'BookReader';
21 }
22 static sizeOf() {
23 return 4;
24 }
25 static createBookReader(builder, books_read) {
26 builder.prep(4, 4);
27 builder.writeInt32(books_read);
28 return builder.offset();
29 }
30 unpack() {
31 return new BookReaderT(this.booksRead());
32 }
33 unpackTo(_o) {
34 _o.booksRead = this.booksRead();
35 }
36}
37export class BookReaderT {
38 constructor(booksRead = 0) {
39 this.booksRead = booksRead;
40 }
41 pack(builder) {
42 return BookReader.createBookReader(builder, this.booksRead);
43 }
44}