Struct binarystream::binary::VarString
source · pub struct VarString {}Expand description
- String
- Represents a signed 32-bit variable length ( 4 bytes ) utf-8 string. ( 0 to 4294967295 )
Implementations§
source§impl VarString
impl VarString
pub fn into_reference(val: VarString, env: Env) -> Result<Reference<VarString>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<VarString>>
source§impl VarString
impl VarString
sourcepub fn read(stream: &mut BinaryStream) -> Result<String>
pub fn read(stream: &mut BinaryStream) -> Result<String>
- read
- Reads a signed 32-bit ( 4 bytes ) utf-8 string from the stream. ( 0 to 4294967295 )
sourcepub fn write(stream: &mut BinaryStream, value: String)
pub fn write(stream: &mut BinaryStream, value: String)
- write
- Writes a signed 32-bit ( 4 bytes ) utf-8 string to the stream. ( 0 to 4294967295 )
Trait Implementations§
source§impl FromNapiMutRef for VarString
impl FromNapiMutRef for VarString
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 VarString
impl FromNapiRef for VarString
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 &VarString
impl FromNapiValue for &VarString
source§impl FromNapiValue for &mut VarString
impl FromNapiValue for &mut VarString
source§impl ToNapiValue for VarString
impl ToNapiValue for VarString
source§impl ValidateNapiValue for &VarString
impl ValidateNapiValue for &VarString
Auto Trait Implementations§
impl RefUnwindSafe for VarString
impl Send for VarString
impl Sync for VarString
impl Unpin for VarString
impl UnwindSafe for VarString
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