Struct divans::mux::Mux [−][src]
Methods
impl<AllocU8: Allocator<u8>> Mux<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> Mux<AllocU8>
pub fn read_cursor(&self, index: usize) -> usize
[src]
pub fn read_cursor(&self, index: usize) -> usize
pub fn write_cursor(&self, index: usize) -> usize
[src]
pub fn write_cursor(&self, index: usize) -> usize
impl<AllocU8: Allocator<u8>> Mux<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> Mux<AllocU8>
pub fn how_much_data_avail(&self, stream_id: StreamID) -> usize
[src]
pub fn how_much_data_avail(&self, stream_id: StreamID) -> usize
pub fn data_avail(&self, stream_id: StreamID) -> &[u8]
[src]
pub fn data_avail(&self, stream_id: StreamID) -> &[u8]
pub fn consume_data(&mut self, stream_id: StreamID, count: usize)
[src]
pub fn consume_data(&mut self, stream_id: StreamID, count: usize)
pub fn is_eof(&self) -> bool
[src]
pub fn is_eof(&self) -> bool
pub fn prealloc(&mut self, m8: &mut AllocU8, amount_per_stream: usize)
[src]
pub fn prealloc(&mut self, m8: &mut AllocU8, amount_per_stream: usize)
pub fn free(&mut self, m8: &mut AllocU8)
[src]
pub fn free(&mut self, m8: &mut AllocU8)
pub fn push_data(&mut self, stream_id: StreamID, data: &[u8], m8: &mut AllocU8)
[src]
pub fn push_data(&mut self, stream_id: StreamID, data: &[u8], m8: &mut AllocU8)
pub fn prep_push_for_n_bytes(
&mut self,
stream_id: StreamID,
data_len: usize,
m8: &mut AllocU8
) -> (&mut AllocU8::AllocatedMemory, &mut usize)
[src]
pub fn prep_push_for_n_bytes(
&mut self,
stream_id: StreamID,
data_len: usize,
m8: &mut AllocU8
) -> (&mut AllocU8::AllocatedMemory, &mut usize)
pub fn deserialize_eof(&mut self, input: &[u8]) -> usize
[src]
pub fn deserialize_eof(&mut self, input: &[u8]) -> usize
pub fn deserialize(&mut self, input: &[u8], m8: &mut AllocU8) -> usize
[src]
pub fn deserialize(&mut self, input: &[u8], m8: &mut AllocU8) -> usize
pub fn serialize(&mut self, output: &mut [u8]) -> usize
[src]
pub fn serialize(&mut self, output: &mut [u8]) -> usize
pub fn serialize_close(&mut self, output: &mut [u8]) -> usize
[src]
pub fn serialize_close(&mut self, output: &mut [u8]) -> usize
Trait Implementations
impl<AllocU8: Allocator<u8>> Default for Mux<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> Default for Mux<AllocU8>
impl<AllocU8: Allocator<u8>> StreamDemuxer<AllocU8> for Mux<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> StreamDemuxer<AllocU8> for Mux<AllocU8>
fn write_linear(&mut self, data: &[u8], m8: &mut AllocU8) -> usize
[src]
fn write_linear(&mut self, data: &[u8], m8: &mut AllocU8) -> usize
fn read_buffer(&mut self) -> [ReadableBytes; 2]
[src]
fn read_buffer(&mut self) -> [ReadableBytes; 2]
fn data_ready(&self, stream_id: StreamID) -> usize
[src]
fn data_ready(&self, stream_id: StreamID) -> usize
fn peek(&self, stream_id: StreamID) -> &[u8]
[src]
fn peek(&self, stream_id: StreamID) -> &[u8]
fn edit(
&mut self,
stream_id: StreamID
) -> &mut AllocatedMemoryRange<u8, AllocU8>
[src]
fn edit(
&mut self,
stream_id: StreamID
) -> &mut AllocatedMemoryRange<u8, AllocU8>
fn consume(&mut self, stream_id: StreamID, count: usize)
[src]
fn consume(&mut self, stream_id: StreamID, count: usize)
fn consumed_all_streams_until_eof(&self) -> bool
[src]
fn consumed_all_streams_until_eof(&self) -> bool
fn encountered_eof(&self) -> bool
[src]
fn encountered_eof(&self) -> bool
fn free_demux(&mut self, m8: &mut AllocU8)
[src]
fn free_demux(&mut self, m8: &mut AllocU8)
impl<AllocU8: Allocator<u8>> StreamMuxer<AllocU8> for Mux<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> StreamMuxer<AllocU8> for Mux<AllocU8>
fn write(&mut self, stream_id: StreamID, data: &[u8], m8: &mut AllocU8) -> usize
[src]
fn write(&mut self, stream_id: StreamID, data: &[u8], m8: &mut AllocU8) -> usize
fn write_buffer(&mut self, m8: &mut AllocU8) -> [WritableBytes; 2]
[src]
fn write_buffer(&mut self, m8: &mut AllocU8) -> [WritableBytes; 2]
fn linearize(&mut self, output: &mut [u8]) -> usize
[src]
fn linearize(&mut self, output: &mut [u8]) -> usize
fn flush(&mut self, output: &mut [u8]) -> usize
[src]
fn flush(&mut self, output: &mut [u8]) -> usize
fn wrote_eof(&self) -> bool
[src]
fn wrote_eof(&self) -> bool
fn free_mux(&mut self, m8: &mut AllocU8)
[src]
fn free_mux(&mut self, m8: &mut AllocU8)
fn can_linearize() -> bool
[src]
fn can_linearize() -> bool