MCPcopy Create free account
hub / github.com/RustCrypto/formats / perform_decode

Method perform_decode

base64ct/src/decoder.rs:242–248  ·  view source on GitHub ↗

Perform Base64 decoding operation.

(&self, src: &[u8], dst: &'o mut [u8])

Source from the content-addressed store, hash-verified

240
241 /// Perform Base64 decoding operation.
242 fn perform_decode<'o>(&self, src: &[u8], dst: &'o mut [u8]) -> Result<&'o [u8], Error> {
243 if self.is_finished() {
244 E::decode(src, dst)
245 } else {
246 E::Unpadded::decode(src, dst)
247 }
248 }
249}
250
251#[cfg(feature = "std")]

Callers 2

decodeMethod · 0.80
fill_block_bufferMethod · 0.80

Calls 2

decodeFunction · 0.50
is_finishedMethod · 0.45

Tested by

no test coverage detected