Function xdr_codec::unpack_opaque_array
[−]
[src]
pub fn unpack_opaque_array<In: Read>(input: &mut In, bytes: &mut [u8], bytesz: usize) -> Result<usize>
Unpack a fixed-sized opaque array
Unpack a fixed-size array of raw bytes. The results are placed in bytes
, but the actual wire-size of
the array is bytesz
. If the supplied bytes
is too large, the remainer is filled in with 0x00;
if it is too small, the excess elements are discarded.
All the bytes in bytes
will be initialized after a successful call.