apache-arrow
Version:
Apache Arrow columnar in-memory format
38 lines (36 loc) • 1.15 kB
JavaScript
// automatically generated by the FlatBuffers compiler, do not modify
import * as flatbuffers from 'flatbuffers';
/**
* Same as Utf8, but with 64-bit offsets, allowing to represent
* extremely large data values.
*/
export class LargeUtf8 {
constructor() {
this.bb = null;
this.bb_pos = 0;
}
__init(i, bb) {
this.bb_pos = i;
this.bb = bb;
return this;
}
static getRootAsLargeUtf8(bb, obj) {
return (obj || new LargeUtf8()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static getSizePrefixedRootAsLargeUtf8(bb, obj) {
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
return (obj || new LargeUtf8()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static startLargeUtf8(builder) {
builder.startObject(0);
}
static endLargeUtf8(builder) {
const offset = builder.endObject();
return offset;
}
static createLargeUtf8(builder) {
LargeUtf8.startLargeUtf8(builder);
return LargeUtf8.endLargeUtf8(builder);
}
}
//# sourceMappingURL=large-utf8.mjs.map