Previously, Byte values were read incorrectly as u32 instead of u8, and SignedShort values were read incorrectly as i32 instead of i8.
This PR does the following:
Correctly cast Type::BYTE as u8 values, and support casting Byte to other unsigned types via into_u16, into_u32, into_u64, into_u16_vec, into_u32_vec, and into_u64_vec methods.
Correctly cast Type::SBYTE as i8 values
Similar to #235, resolves some inconsistencies raised in #204.
Previously, Byte values were read incorrectly as
u32
instead ofu8
, and SignedShort values were read incorrectly asi32
instead ofi8
.This PR does the following:
Type::BYTE
as u8 values, and support casting Byte to other unsigned types viainto_u16
,into_u32
,into_u64
,into_u16_vec
,into_u32_vec
, andinto_u64_vec
methods.Type::SBYTE
as i8 valuesSimilar to #235, resolves some inconsistencies raised in #204.