Struct binarystream::binary::Int24
source · pub struct Int24 {}Expand description
- Int24
- Represents a signed 24-bit ( 3 bytes ) integer. ( -8388608 to 8388607 )
Implementations§
source§impl Int24
impl Int24
pub fn into_reference(val: Int24, env: Env) -> Result<Reference<Int24>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Int24>>
source§impl Int24
impl Int24
sourcepub fn read(
stream: &mut BinaryStream,
endian: Option<Endianness>
) -> Result<i32>
pub fn read( stream: &mut BinaryStream, endian: Option<Endianness> ) -> Result<i32>
- read
- Reads a signed 24-bit ( 3 bytes ) integer from the stream. ( -8388608 to 8388607 )
sourcepub fn write(stream: &mut BinaryStream, value: i32, endian: Option<Endianness>)
pub fn write(stream: &mut BinaryStream, value: i32, endian: Option<Endianness>)
- write
- Writes a signed 24-bit ( 3 bytes ) integer to the stream. ( -8388608 to 8388607 )
Trait Implementations§
source§impl FromNapiMutRef for Int24
impl FromNapiMutRef for Int24
source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value ) -> Result<&'static mut Self>
Safety Read more
source§impl FromNapiRef for Int24
impl FromNapiRef for Int24
source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value ) -> Result<&'static Self>
Safety Read more
source§impl FromNapiValue for &Int24
impl FromNapiValue for &Int24
source§impl FromNapiValue for &mut Int24
impl FromNapiValue for &mut Int24
source§impl ToNapiValue for Int24
impl ToNapiValue for Int24
source§impl ValidateNapiValue for &Int24
impl ValidateNapiValue for &Int24
Auto Trait Implementations§
impl RefUnwindSafe for Int24
impl Send for Int24
impl Sync for Int24
impl Unpin for Int24
impl UnwindSafe for Int24
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more