SdatSwarFile

data class SdatSwarFile(val name: String, val data: ByteArray, val unk: Int)

Represents a single Nintendo DS wave archive (SWAR) file extracted from an SDAT archive.

Constructors

Link copied to clipboard
constructor(name: String, data: ByteArray, unk: Int)

Properties

Link copied to clipboard

The raw SWAR file bytes.

Link copied to clipboard

The symbolic name from the SYMB block, or a generated fallback such as "SWAR_0".

Link copied to clipboard
val unk: Int

Unknown reserved field (u16) from the INFO entry at offset +2.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares two SdatSwarFile instances for structural equality, including data content.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code consistent with equals.

Link copied to clipboard

Decodes every SWAV sample in this SWAR wave archive and returns one WAV byte array per sample.