MCPcopy Create free account
hub / github.com/Tencent/libpag / readInt8

Method readInt8

web/lite/src/codec/utils/byte-array.ts:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 }
62
63 public readInt8(): number {
64 if (this._position >= this.length) throw new Error(ErrorMessage.PAGDecodeError);
65 const value = this.dataView.getInt8(this._position);
66 this._position += 1;
67 this.positonChanged();
68 return value;
69 }
70
71 public readInt16(): number {
72 if (this._position >= this.length - 1) throw new Error(ErrorMessage.PAGDecodeError);

Callers 1

readBodyBytesFunction · 0.45

Calls 1

positonChangedMethod · 0.95

Tested by

no test coverage detected