[][src]Trait rusty_v8::ValueDeserializerHelper

pub trait ValueDeserializerHelper {
    pub fn get_cxx_value_deserializer(&mut self) -> &mut CxxValueDeserializer;

    pub fn read_header(&mut self, context: Local<'_, Context>) -> Option<bool> { ... }
pub fn read_value(
        &mut self,
        context: Local<'_, Context>
    ) -> Option<Local<'_, Value>> { ... }
pub fn read_uint32(&mut self, value: &mut u32) -> bool { ... }
pub fn read_uint64(&mut self, value: &mut u64) -> bool { ... }
pub fn read_double(&mut self, value: &mut f64) -> bool { ... }
pub fn read_raw_bytes(&mut self, length: usize) -> Option<&[u8]> { ... }
pub fn transfer_array_buffer(
        &mut self,
        transfer_id: u32,
        array_buffer: Local<'_, ArrayBuffer>
    ) { ... } }

Trait used for direct read from the deserialization buffer. Mostly used by the read_host_object callback function in the ValueDeserializerImpl trait to create custom deserialization logic.

Required methods

pub fn get_cxx_value_deserializer(&mut self) -> &mut CxxValueDeserializer

Loading content...

Provided methods

pub fn read_header(&mut self, context: Local<'_, Context>) -> Option<bool>

pub fn read_value(
    &mut self,
    context: Local<'_, Context>
) -> Option<Local<'_, Value>>

pub fn read_uint32(&mut self, value: &mut u32) -> bool

pub fn read_uint64(&mut self, value: &mut u64) -> bool

pub fn read_double(&mut self, value: &mut f64) -> bool

pub fn read_raw_bytes(&mut self, length: usize) -> Option<&[u8]>

pub fn transfer_array_buffer(
    &mut self,
    transfer_id: u32,
    array_buffer: Local<'_, ArrayBuffer>
)

Loading content...

Implementors

impl<'a, 's> ValueDeserializerHelper for ValueDeserializer<'a, 's>[src]

Loading content...