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:
parent
b938ab9d76
commit
c85d4e4fa6
2 changed files with 80 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue