UNPKG

@swtc/serializer

Version:
13 lines 364 B
import { convertIntegerToByteArray, readAndSum } from "../Utils"; import SerializedType from "./SerializedType"; const STInt8 = new SerializedType({ id: 16, serialize(so, val) { so.append(convertIntegerToByteArray(val, 1)); }, parse(so) { return readAndSum(so, 1); } }); export default STInt8; //# sourceMappingURL=STInt8.js.map