UNPKG

electr0lysis

Version:

Simple framework for data serialization and interchange.

13 lines 489 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("f1ux/string/operator/toBytes"); class StringEncoder { calculateSize(value, type, context) { return context.calculateSize(value.toBytes(), { name: "Uint8Array" }); } encode(value, type, view, offset, context) { context.encode(value.toBytes(), { name: "Uint8Array" }, view, offset); } } exports.default = StringEncoder; //# sourceMappingURL=StringEncoder.js.map