Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8807f1ef0 | ||
|
|
10945927c1 |
@@ -71,8 +71,9 @@ public class ByteBufOutPacket implements OutPacket {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeString(String value) {
|
public void writeString(String value) {
|
||||||
writeShort((short) value.length());
|
byte[] bytes = value.getBytes(CharsetConstants.CHARSET);
|
||||||
writeBytes(value.getBytes(CharsetConstants.CHARSET));
|
writeShort(bytes.length);
|
||||||
|
writeBytes(bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user