UNPKG

aes70

Version:

A controller library for the AES70 protocol.

16 lines (14 loc) 353 B
import { createType } from './createType.js'; export const OcaInt8 = createType({ isConstantLength: true, encodedLength: function (value) { return 1; }, encodeTo: function (dataView, pos, value) { dataView.setInt8(pos, value | 0); return pos + 1; }, decode: function (dataView, pos) { return dataView.getInt8(pos); }, });