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

Method withCapacity

packages/alphatab/src/io/ByteBuffer.ts:26–30  ·  view source on GitHub ↗
(capacity: number)

Source from the content-addressed store, hash-verified

24 }
25
26 public static withCapacity(capacity: number): ByteBuffer {
27 const buffer: ByteBuffer = new ByteBuffer();
28 buffer._buffer = new Uint8Array(capacity);
29 return buffer;
30 }
31
32 public static fromBuffer(data: Uint8Array): ByteBuffer {
33 const buffer: ByteBuffer = new ByteBuffer();

Callers 8

writeForScoreMethod · 0.80
writeForScoreMethod · 0.80
writeForScoreMethod · 0.80
writeToFunction · 0.80
emptyMethod · 0.80
exportFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected