(byte type, byte status, byte[] data)
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected