pub fn new(channel: UnreliableChannel<R, P>, max_message_len: u16) -> Self {
        UnreliableBincodeChannel {
            channel,
            buffer: vec![0; max_message_len.min(MAX_MESSAGE_LEN) as usize].into_boxed_slice(),
        }
    }
/// Create a new `UnreliableBincodeChannel` with the given max message size.
///
/// The maximum message size is always limited by the underlying `UnreliableChannel` maximum
/// message size regardless of the `max_message_len` setting, but this can be used to restrict
/// the intermediate buffer used to serialize messages.
Create a new `UnreliableBincodeChannel` with the given max message size.
The maximum message size is always limited by the underlying `UnreliableChannel` maximum
message size regardless of the `max_message_len` setting, but this can be used to restrict
the intermediate buffer used to serialize messages.
Create a new ` UnreliableBincodeChannel ` with the given max message size . The maximum message size is always limited by the underlying ` UnreliableChannel ` maximum message size regardless of the ` max_message_len ` setting but this can be used to restrict the intermediate buffer used to serialize messages .
pub fn new(channel: UnreliableChannel<R, P>, max_message_len: u16) -> Self {
        UnreliableBincodeChannel {
            channel,
            buffer: vec![0; max_message_len.min(MAX_MESSAGE_LEN) as usize].into_boxed_slice(),
        }
    }
pub fn new ( channel : UnreliableChannel < R , P > , max_message_len : u16 ) -> Self { UnreliableBincodeChannel { channel , buffer : vec ! [ 0 max_message_len min ( MAX_MESSAGE_LEN ) as usize ] . into_boxed_slice ( ) , } }
Create a new `UnreliableBincodeChannel` with the given max message size.
Create a new ` UnreliableBincodeChannel ` with the given max message size .
channel
UnreliableChannel<R, P>
max_message_len
u16
channel
UnreliableChannel<R, P>
max_message_len
u16