Trait v8::ValueDeserializerHelper

source ·
pub trait ValueDeserializerHelper {
    // Required method
    fn get_cxx_value_deserializer(&self) -> &CxxValueDeserializer;

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

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§

source

fn get_cxx_value_deserializer(&self) -> &CxxValueDeserializer

Provided Methods§

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

fn get_wire_format_version(&self) -> u32

Implementors§