smppjs
Version:
Modern approach to smpp protocol.
18 lines • 459 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Int8 = void 0;
class Int8 {
static write({ buffer, value, offset }) {
const newBuffer = buffer;
newBuffer.writeUInt8(value || 0, offset);
return newBuffer;
}
static read({ buffer, offset }) {
return buffer.readUInt8(offset);
}
static size() {
return 1;
}
}
exports.Int8 = Int8;
//# sourceMappingURL=int8.js.map