MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / decode

Function decode

gateway/src/kv/mod.rs:373–375  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

371}
372
373pub fn decode<T: for<'de> Deserialize<'de>>(bytes: &[u8]) -> Result<T> {
374 rmp_serde::decode::from_slice(bytes).context("failed to decode value")
375}
376
377trait GetPutCodec {
378 fn decode<T: for<'de> serde::Deserialize<'de>>(&self, key: &str) -> Option<T>;

Callers 15

from_bytesMethod · 0.85
parse_ccelFunction · 0.85
decodeMethod · 0.85
decode_from_ccel_fileMethod · 0.85
parse_spec_id_event_logFunction · 0.85
decodeMethod · 0.85
sign_certMethod · 0.85
verify_quoted_keyMethod · 0.85
make_vm_configFunction · 0.85
replay_rtmrFunction · 0.85
decode_keyMethod · 0.85
decode_attestationMethod · 0.85

Calls

no outgoing calls

Tested by 4

from_bytesMethod · 0.68
parse_ccelFunction · 0.68
test_dh_decryptFunction · 0.68