pub fn sample(data: &[u8]) -> Cow<'_, [u8]>Expand description
The codec-choice sample of a block: the block itself (borrowed) when it is small enough for the full trial, otherwise the concatenation of its sample slices. A pure function of the bytes.