* 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)
| 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 |
nothing calls this directly
no test coverage detected