MCPcopy Create free account
hub / github.com/RustCrypto/utils / default

Method default

block-buffer/src/lib.rs:101–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99impl<BS: BlockSizes, K: BufferKind> Default for BlockBuffer<BS, K> {
100 #[inline]
101 fn default() -> Self {
102 let mut buffer = MaybeUninit::uninit();
103 let mut pos = Default::default();
104 K::set_pos(&mut buffer, &mut pos, 0);
105 Self { buffer, pos }
106 }
107}
108
109impl<BS: BlockSizes, K: BufferKind> Clone for BlockBuffer<BS, K> {

Callers

nothing calls this directly

Calls 1

defaultFunction · 0.85

Tested by

no test coverage detected