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§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
source§impl FromNapiValue for &mut Int24
impl FromNapiValue for &mut Int24
source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
source§impl ToNapiValue for Int24
impl ToNapiValue for Int24
source§unsafe fn to_napi_value(env: napi_env, val: Int24) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Int24) -> Result<napi_value>
Safety Read more
source§impl ValidateNapiValue for &Int24
impl ValidateNapiValue for &Int24
source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
source§impl ValidateNapiValue for &mut Int24
impl ValidateNapiValue for &mut Int24
source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for Int24
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