MCPcopy Index your code
hub / github.com/Q16G/memory-shell / main

Method main

src/main/java/org/example/tlv.java:31–39  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

29 }
30
31 public static void main(String[] args) {
32 byte[] encode = new Request((byte) 0x00, null).encode();
33 Request decode = Request.decode(encode);
34 System.out.println(decode);
35
36 byte[] encode1 = new Response((byte) 0x00, (byte) 0x01, null).encode();
37 Response decode1 = Response.decode(encode1);
38 System.out.println(decode1);
39 }
40
41 public static boolean validate(byte[] data) {
42 if (data.length < MAGIC_PREFIX.length) {

Callers

nothing calls this directly

Calls 3

decodeMethod · 0.95
decodeMethod · 0.95
encodeMethod · 0.45

Tested by

no test coverage detected