apache-arrow
Version:
Apache Arrow columnar in-memory format
37 lines (35 loc) • 1.04 kB
JavaScript
// automatically generated by the FlatBuffers compiler, do not modify
import * as flatbuffers from 'flatbuffers';
/**
* These are stored in the flatbuffer in the Type union below
*/
export class Null {
constructor() {
this.bb = null;
this.bb_pos = 0;
}
__init(i, bb) {
this.bb_pos = i;
this.bb = bb;
return this;
}
static getRootAsNull(bb, obj) {
return (obj || new Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static getSizePrefixedRootAsNull(bb, obj) {
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
return (obj || new Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static startNull(builder) {
builder.startObject(0);
}
static endNull(builder) {
const offset = builder.endObject();
return offset;
}
static createNull(builder) {
Null.startNull(builder);
return Null.endNull(builder);
}
}
//# sourceMappingURL=null.mjs.map