2022-02-08 20:21:20 +00:00
|
|
|
import { ByteBuffer } from './byte-buffer.js'
|
|
|
|
import { Builder } from './builder.js'
|
2020-09-17 19:21:14 +00:00
|
|
|
|
|
|
|
export type Offset = number;
|
|
|
|
|
|
|
|
export type Table = {
|
|
|
|
bb: ByteBuffer
|
|
|
|
bb_pos: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface IGeneratedObject {
|
|
|
|
pack(builder:Builder): Offset
|
2022-09-29 22:03:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IUnpackableObject<T> {
|
|
|
|
unpack(): T
|
2020-09-17 19:21:14 +00:00
|
|
|
}
|