MCPcopy Create free account
hub / github.com/Q16G/memory-shell / Response

Method Response

src/main/java/org/example/tlv.java:118–123  ·  view source on GitHub ↗
(byte type, byte status, byte[] data)

Source from the content-addressed store, hash-verified

116 private byte[] data; // 数据部分
117
118 public Response(byte type, byte status, byte[] data) {
119 this.type = type;
120 this.status = status;
121 this.data = data;
122 this.length = (data != null ? data.length : 0) + 1; // +1是状态码的长度
123 }
124
125 // 编码响应包(带加密)
126 public byte[] encode() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected