MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / readAll

Method readAll

packages/alphatab/src/io/BitReader.ts:65–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 public readAll(): Uint8Array {
66 const all: ByteBuffer = ByteBuffer.empty();
67 try {
68 while (true) {
69 all.writeByte(this.readByte() & 0xff);
70 }
71 } catch (e) {
72 if (!(e instanceof EndOfReaderError)) {
73 throw e;
74 }
75 }
76 return all.toArray();
77 }
78}

Callers

nothing calls this directly

Calls 4

readByteMethod · 0.95
emptyMethod · 0.80
toArrayMethod · 0.80
writeByteMethod · 0.65

Tested by

no test coverage detected