UNPKG

muschema

Version:
33 lines 1.23 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var _number_1 = require("./_number"); var MuInt8 = (function (_super) { __extends(MuInt8, _super); function MuInt8(value) { return _super.call(this, (value || 0) << 24 >> 24, 'int8') || this; } MuInt8.prototype.diff = function (base, target, stream) { if ((base << 24 >> 24) !== (target << 24 >> 24)) { stream.grow(1); stream.writeInt8(target); return true; } return false; }; MuInt8.prototype.patch = function (base, stream) { return stream.readInt8(); }; return MuInt8; }(_number_1.MuNumber)); exports.MuInt8 = MuInt8; //# sourceMappingURL=int8.js.map