pub fn new(channel: ReliableChannel, max_message_len: u16) -> Self {
        ReliableBincodeChannel {
            channel,
            max_message_len,
            write_buffer: vec![0; 2 + max_message_len as usize].into_boxed_slice(),
            write_pos: 0,
            write_end: 0,
            read_buffer: vec![0; 2 + max_message_len as usize].into_boxed_slice(),
            read_pos: 0,
            read_end: 0,
        }
    }
/// Create a new `ReliableBincodeChannel` with a maximum message size of `max_message_len`.
Create a new `ReliableBincodeChannel` with a maximum message size of `max_message_len`.
Create a new ` ReliableBincodeChannel ` with a maximum message size of ` max_message_len ` .
pub fn new(channel: ReliableChannel, max_message_len: u16) -> Self {
        ReliableBincodeChannel {
            channel,
            max_message_len,
            write_buffer: vec![0; 2 + max_message_len as usize].into_boxed_slice(),
            write_pos: 0,
            write_end: 0,
            read_buffer: vec![0; 2 + max_message_len as usize].into_boxed_slice(),
            read_pos: 0,
            read_end: 0,
        }
    }
pub fn new ( channel : ReliableChannel , max_message_len : u16 ) -> Self { ReliableBincodeChannel { channel , max_message_len , write_buffer : vec ! [ 0 2 max_message_len as usize ] . into_boxed_slice ( ) , write_pos : 0 , write_end : 0 , read_buffer : vec ! [ 0 2 max_message_len as usize ] . into_boxed_slice ( ) , read_pos : 0 , read_end : 0 , } }
Create a new `ReliableBincodeChannel` with a maximum message size of `max_message_len`.
Create a new ` ReliableBincodeChannel ` with a maximum message size of ` max_message_len ` .
channel
ReliableChannel
max_message_len
u16
channel
ReliableChannel
max_message_len
u16