MCPcopy Create free account
hub / github.com/hashintel/hash / encode

Function encode

libs/@local/harpc/wire-protocol/src/request/subsystem.rs:51–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50 #[test]
51 fn encode() {
52 let subsystem = SubsystemDescriptor {
53 id: SubsystemId::new(0x01_02),
54 version: Version {
55 major: 0x03,
56 minor: 0x04,
57 },
58 };
59
60 assert_encode(
61 &subsystem,
62 expect![[r#"
63 0x01 0x02 0x03 0x04
64 "#]],
65 );
66 }
67
68 #[test]
69 fn decode() {

Callers

nothing calls this directly

Calls 1

assert_encodeFunction · 0.85

Tested by

no test coverage detected