UNPKG

@swtc/serializer

Version:
18 lines 604 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const Utils_1 = require("../Utils"); const SerializedType_1 = __importDefault(require("./SerializedType")); const STInt8 = new SerializedType_1.default({ id: 16, serialize(so, val) { so.append(Utils_1.convertIntegerToByteArray(val, 1)); }, parse(so) { return Utils_1.readAndSum(so, 1); } }); exports.default = STInt8; //# sourceMappingURL=STInt8.js.map