@payburner/keyburner-core
Version:
KeyburnerJs -- A library to enable arbitrary transaction signing and verification using XRPL-compatible keys and addresses.
27 lines • 682 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BytesList = void 0;
class BytesList {
constructor() {
this.bytesArray = [];
}
getLength() {
return Buffer.concat(this.bytesArray).byteLength;
}
put(bytesArg) {
const bytes = Buffer.from(bytesArg);
this.bytesArray.push(bytes);
return this;
}
toBytesSink(list) {
list.put(this.toBytes());
}
toBytes() {
return Buffer.concat(this.bytesArray);
}
toHex() {
return this.toBytes().toString("hex").toUpperCase();
}
}
exports.BytesList = BytesList;
//# sourceMappingURL=binary-serializer.js.map