UNPKG

@swtc/serializer

Version:
18 lines 616 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 STInt32 = new SerializedType_1.default({ id: 2, serialize(so, val) { so.append((0, Utils_1.convertIntegerToByteArray)(val, 4)); }, parse(so) { return (0, Utils_1.readAndSum)(so, 4); } }); exports.default = STInt32; //# sourceMappingURL=STInt32.js.map