MCPcopy Create free account
hub / github.com/awayjs/core / readByte

Method readByte

lib/utils/ByteArray.ts:90–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 public readByte(): number {
91 if (this.position >= this.length)
92 throw 'ByteArray out of bounds read. Positon=' + this.position + ', Length=' + this.length;
93
94 const view = new Int8Array(this.arraybytes);
95
96 return view[ this.position++ ];
97 }
98
99 public readBytes(bytes: ByteArray, offset: number = 0, length: number = 0): void {
100 if (length == null)

Callers 2

constructorMethod · 0.95
ByteArrayTestFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected