开发中
parent
8e0fd5bae3
commit
abb0acfe35
|
@ -20,7 +20,7 @@ public class LogReport implements Packet
|
|||
buffer.putShort((short) dateBytes.length);
|
||||
buffer.put(dateBytes);
|
||||
byte[] contentBytes = content.getBytes(StandardCharsets.UTF_8);
|
||||
buffer.putInt(contentBytes.length);
|
||||
buffer.putShort((short) contentBytes.length);
|
||||
buffer.put(contentBytes);
|
||||
return 1 + 2 + dateBytes.length + 4 + contentBytes.length;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue