Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ new
Method
new
block-buffer/src/lib.rs:136–138 ·
view source on GitHub ↗
(buf: &[u8])
Source
from the content-addressed store, hash-verified
134
#[must_use]
135
#[track_caller]
136
pub fn new(buf: &[u8]) -> Self {
137
Self::try_new(buf).expect(
"invalid slice length for buffer kind"
)
138
}
139
140
/// Create new buffer from slice.
141
///
Callers
nothing calls this directly
Calls
1
expect
Method · 0.80
Tested by
no test coverage detected