Add OutPacket interface and ByteBuf implementation

Replacement for LittleEndianWriter, GenericLittleEndianWriter,
and MaplePacketLittleEndianWriter.
This commit is contained in:
P0nk
2021-06-20 20:40:23 +02:00
parent 00abbb4acd
commit f3faee2e16
5 changed files with 107 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ public interface InPacket extends Packet {
long readLong();
Point readPoint();
String readString();
byte[] read(int numberOfBytes);
byte[] readBytes(int bytesToRead);
void skip(int numberOfBytes);
int available();
void seek(int byteOffset);