Class PreparedStream
java.lang.Object
com.xpdustry.claj.common.net.stream.PreparedStream
Class holding pre-serialized stream, ready to send. This avoids re-serializing the data every times.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal booleanprotected final arc.util.io.ReusableByteOutStreamfinal byte -
Constructor Summary
ConstructorsConstructorDescriptionPreparedStream(arc.util.io.ReusableByteOutStream data, byte type, int chunkSize, boolean compressed) -
Method Summary
-
Field Details
-
data
protected final arc.util.io.ReusableByteOutStream data -
type
public final byte type -
chunkSize
public final int chunkSize -
compressed
public final boolean compressed
-
-
Constructor Details
-
PreparedStream
public PreparedStream(arc.util.io.ReusableByteOutStream data, byte type, int chunkSize, boolean compressed)
-
-
Method Details
-
send
-