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

Method toArray

packages/alphatab/src/io/ByteBuffer.ts:118–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 }
117
118 public toArray(): Uint8Array {
119 const copy: Uint8Array = new Uint8Array(this.length);
120 copy.set(this._buffer.subarray(0, 0 + this.length), 0);
121 return copy;
122 }
123
124 public copyTo(destination: IWriteable) {
125 destination.write(this._buffer, 0, this.length);

Callers 12

readAllMethod · 0.95
AlphaSkiaTextStyleClass · 0.80
writeForScoreMethod · 0.80
writeForScoreMethod · 0.80
writeForScoreMethod · 0.80
writeEntryMethod · 0.80
_readEntryMethod · 0.80
writeToMethod · 0.80
toBinaryMethod · 0.80
readAllMethod · 0.80
exportFunction · 0.80

Calls 2

setMethod · 0.95
subarrayMethod · 0.45

Tested by

no test coverage detected