1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00

add bench for read_bytes

This commit is contained in:
Robin Appelman 2019-09-20 22:07:57 +02:00
commit c85d4e4fa6
2 changed files with 80 additions and 19 deletions

View file

@ -389,12 +389,6 @@ where
///
/// You can either read a fixed number of bytes, or a dynamic length null-terminated string
///
/// # Features
///
/// To disable the overhead of checking if the read bytes are valid you can enable the `unchecked_utf8`
/// feature of the crate to use `String::from_utf8_unchecked` instead of `String::from_utf8`
/// to create the string from the read bytes.
///
/// # Errors
///
/// - [`ReadError::NotEnoughData`]: not enough bits available in the buffer