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

Function export

packages/alphatab/src/exporter/ScoreExporter.ts:29–34  ·  view source on GitHub ↗

* Exports the given score to a binary buffer. * @param score The score to serialize * @param settings The settings to use during serialization * @returns A byte buffer with the serialized score.

(score: Score, settings: Settings | null = null)

Source from the content-addressed store, hash-verified

27 * @returns A byte buffer with the serialized score.
28 */
29 public export(score: Score, settings: Settings | null = null): Uint8Array {
30 const writable = ByteBuffer.withCapacity(1024);
31 this.init(writable, settings ?? new Settings());
32 this.writeScore(score);
33 return writable.toArray();
34 }
35
36 public abstract get name(): string;
37

Callers

nothing calls this directly

Calls 4

withCapacityMethod · 0.80
toArrayMethod · 0.80
initMethod · 0.45
writeScoreMethod · 0.45

Tested by

no test coverage detected