Add InPacket interface and ByteBuf implementation

Replacement for LittleEndianAccessor, SeekableLittleEndianAccessor,
GenericLittleEndianAccessor, and GenericSeekableLittleEndianAccessor.
This commit is contained in:
P0nk
2021-06-20 17:15:10 +02:00
parent eb7ee9dabe
commit 00abbb4acd
6 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package net.packet;
import java.awt.*;
public interface InPacket extends Packet {
byte readByte();
short readShort();
int readInt();
long readLong();
Point readPoint();
String readString();
byte[] read(int numberOfBytes);
void skip(int numberOfBytes);
int available();
void seek(int byteOffset);
int getPosition();
}