pub(crate) fn from_bytes_limit<R: ReadBytes>(
        stream: &mut R,
        data_size: u64,
    ) -> io::Result<DataRef<N, T>> {
        // The stream returns a DataRef<(), u8>. we need to convert it
        // into our type.
        let data_ref = stream.data_ref(data_size)?;
        stream.skip(data_size)?;
        Ok(data_ref.transmute())
    }
// This is not the from_bytes from the FromBytes trait, it is
// a direct method, because it has an extra data_size argument.
This is not the from_bytes from the FromBytes trait, it is
a direct method, because it has an extra data_size argument.
This is not the from_bytes from the FromBytes trait it is a direct method because it has an extra data_size argument .
pub(crate) fn from_bytes_limit<R: ReadBytes>(
        stream: &mut R,
        data_size: u64,
    ) -> io::Result<DataRef<N, T>> {
        // The stream returns a DataRef<(), u8>. we need to convert it
        // into our type.
        let data_ref = stream.data_ref(data_size)?;
        stream.skip(data_size)?;
        Ok(data_ref.transmute())
    }
pub ( crate ) fn from_bytes_limit < R : ReadBytes > ( stream : & mut R , data_size : u64 , ) -> io :: Result < DataRef < N , T > > { // The stream returns a DataRef<(), u8>. we need to convert it // into our type. let data_ref = stream . data_ref ( data_size ) ? ; stream . skip ( data_size ) ? ; Ok ( data_ref . transmute ( ) ) }
This is not the from_bytes from the FromBytes trait, it is
a direct method, because it has an extra data_size argument.
This is not the from_bytes from the FromBytes trait it is a direct method because it has an extra data_size argument .
stream
&mut R
data_size
u64
stream
&mut R
data_size
u64