hsdif-0.11: Haskell SDIF

Sound.SDIF.Byte.Matrix

Description

Byte level SDIF frame data structure.

Synopsis

Documentation

is_matrix_b :: ByteString -> BoolSource

Data integrity check for SDIF matix byte stream.

matrix_b_header_size :: IntSource

Matrix header size (constant).

matrix_b_header :: ByteString -> ByteStringSource

Extract matrix header byte stream.

matrix_b_type :: ByteString -> StringSource

Extract matrix type string.

matrix_b_data_type :: ByteString -> TypeSource

Extract matrix element data Type.

matrix_b_rows :: ByteString -> IntSource

Extract matrix row count.

matrix_b_columns :: ByteString -> IntSource

Extract matrix column count.

matrix_b_elements :: ByteString -> IntSource

Extract matrix element count (ie. rows by columns).

matrix_b_data_size :: ByteString -> IntSource

Calculate size of matrix data store (ie. elements by Type size).

matrix_b_storage_size :: ByteString -> IntSource

Variant of matrix_b_data_size taking into account required padding.

matrix_b_to_matrix_v :: ByteString -> [Datum]Source

Extract matrix data from byte stream.