capnp-js
Version:
Capnproto run-time decoding and encoding for Node
18 lines (16 loc) • 515 B
JavaScript
exports.rt = function() {
return {
meta: 0,
dataBytes: this._pointersSection - this._dataSection,
pointersBytes: this._end - this._pointersSection
};
};
exports.layout = function() {
return {
meta: 0,
segment: this._segment,
dataSection: this._dataSection,
pointersSection: this._pointersSection,
end: this._end
};
};