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

Method fromBuffer

packages/alphatab/src/io/ByteBuffer.ts:32–37  ·  view source on GitHub ↗
(data: Uint8Array)

Source from the content-addressed store, hash-verified

30 }
31
32 public static fromBuffer(data: Uint8Array): ByteBuffer {
33 const buffer: ByteBuffer = new ByteBuffer();
34 buffer._buffer = data;
35 buffer.length = data.length;
36 return buffer;
37 }
38
39 public static fromString(contents: string): ByteBuffer {
40 const byteArray: Uint8Array = IOHelper.stringToBytes(contents);

Callers 15

handleDropMethod · 0.80
prepareImporterWithBytesFunction · 0.80
prepareImporterWithBytesFunction · 0.80
loadFileMethod · 0.80
prepareImporterWithBytesFunction · 0.80
corruptTestFunction · 0.80
loadLyricsTemplateFileFunction · 0.80

Calls

no outgoing calls

Tested by 8

prepareImporterWithBytesFunction · 0.64
prepareImporterWithBytesFunction · 0.64
prepareImporterWithBytesFunction · 0.64
corruptTestFunction · 0.64
loadLyricsTemplateFileFunction · 0.64
testVorbisFileFunction · 0.64
prepareImporterWithBytesFunction · 0.64
getInstrumentSetFunction · 0.64