ausnd 0.7.0

Reader and writer for the AU audio format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12

/// Casts i8 to u8, mapping negative values to 128..255.
#[allow(clippy::cast_sign_loss)] // mapping to positive values is expected
pub const fn i8_as_u8(value: i8) -> u8 {
    value as u8
}

/// Casts u8 to i8, mapping 128..255 to negative values.
#[allow(clippy::cast_possible_wrap)] // mapping to negative values is expected
pub const fn u8_as_i8(value: u8) -> i8 {
    value as i8
}