Class RawPacket
java.lang.Object
com.xpdustry.claj.common.packets.RawPacket
- All Implemented Interfaces:
Packet
Wrapper for
This is only needed due to compatibility with receivers.
ByteBuffer that implements Packet. This is only needed due to compatibility with receivers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()data()flipIfNeeded(int capacity) voidread(arc.util.io.ByteBufferInput read) static ByteBufferread(arc.util.io.ByteBufferInput read, int length) read(ByteBuffer buffer) static ByteBufferreadAll(arc.util.io.ByteBufferInput read) voidwrite(arc.util.io.ByteBufferOutput write) write(ByteBuffer buffer) static voidwrite(ByteBuffer src, arc.util.io.ByteBufferOutput write) Suppressessrcreading.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Packet
allow, handleClient, handleServer, r, w
-
Field Details
-
first
-
second
-
flipped
protected boolean flipped
-
-
Constructor Details
-
RawPacket
public RawPacket()
-
-
Method Details
-
read
-
read
-
write
-
write
-
flipIfNeeded
-
data
-
copy
-
readAll
-
read
-
write
Suppressessrcreading. Optimized for backed array buffers.
-