Skip to content

Implement from_xx_bytes methods for dasp_sample types #202

@DanielHabenicht

Description

@DanielHabenicht

It would be convenient to have from_be_bytes and from_le_bytes methods for 24bit similar to https://doc.rust-lang.org/std/primitive.u32.html#method.from_be_bytes.

This could provide a standardized way to convert the type from source instead of implementing brittle custom solutions which could easily end up wrong without errors by skewing the dbm (e.g. here).

As we already implemented it there I am happy to provide an PR for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions