mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 19:35:11 +00:00
socket debugger: 2bytes for string length
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
private static function writeString(msg){
|
||||
var b:ByteArray = new ByteArray();
|
||||
b.writeUTFBytes(msg);
|
||||
s.writeByte(b.length);
|
||||
s.writeByte((b.length>>8) & 0xff);
|
||||
s.writeByte(b.length & 0xff);
|
||||
s.writeBytes(b,0,b.length);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user