Crate ssbh_lib[][src]

Modules

formats

Structs

Color4f

4 contiguous floats for encoding RGBA data.

DebugPosition

A wrapper type that serializes the value and absolute offset of the start of the value to aid in debugging.

Half

A half precision floating point type used for data in buffers that supports conversions to and from f32.

InlineString

A C string stored inline. This will likely be wrapped in a pointer type.

Matrix3x3

A row-major 3x3 matrix of contiguous floats.

Matrix4x4

A row-major 4x4 matrix of contiguous floats.

Ptr64

A 64 bit file pointer to some data.

RelPtr64

A 64 bit file pointer relative to the start of the pointer type.

Ssbh

The container type for the various SSBH formats.

SsbhArray

A contigous, fixed size collection of elements with position determined by a relative offset.

SsbhByteBuffer

A more performant type for parsing arrays of bytes.

SsbhEnum64

Parses a struct with a relative offset to a structure of type T with some data type. Parsing will fail if there is no matching variant for data_type.

SsbhString

A 4 byte aligned C string with position determined by a relative offset.

SsbhString8

An 8 byte aligned C string with position determined by a relative offset.

Vector3

3 contiguous floats for encoding XYZ or RGB data.

Vector4

4 contiguous floats for encoding XYZW or RGBA data.

Enums

SsbhFile

The associated magic and format for each SSBH type.

Traits

SsbhWrite

Functions

write_anim
write_buffered
write_ssbh
write_ssbh_file