Struct binarystream::binary::Int32
source · pub struct Int32 {}Expand description
- Int32
- Represents a signed 32-bit ( 4 bytes ) integer. ( -2147483648 to 2147483647 )
Implementations§
source§impl Int32
impl Int32
pub fn into_reference(val: Int32, env: Env) -> Result<Reference<Int32>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Int32>>
source§impl Int32
impl Int32
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 32-bit ( 4 bytes ) integer from the stream. ( -2147483648 to 2147483647 )
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 32-bit ( 4 bytes ) integer to the stream. ( -2147483648 to 2147483647 )
Trait Implementations§
source§impl FromNapiMutRef for Int32
impl FromNapiMutRef for Int32
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 Int32
impl FromNapiRef for Int32
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 &Int32
impl FromNapiValue for &Int32
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 Int32
impl FromNapiValue for &mut Int32
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 Int32
impl ToNapiValue for Int32
source§unsafe fn to_napi_value(env: napi_env, val: Int32) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Int32) -> Result<napi_value>
Safety Read more
source§impl ValidateNapiValue for &Int32
impl ValidateNapiValue for &Int32
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 Int32
impl ValidateNapiValue for &mut Int32
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 Int32
impl RefUnwindSafe for Int32
impl Send for Int32
impl Sync for Int32
impl Unpin for Int32
impl UnwindSafe for Int32
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