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 transfer_shared_array_buffer(
&self,
transfer_id: u32,
shared_array_buffer: Local<'_, SharedArrayBuffer>,
) { ... }
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.