Package top.untold.frostlumen.core.tool
Class DirectByteBuffer
java.lang.Object
top.untold.frostlumen.core.tool.GCCleanable
top.untold.frostlumen.core.tool.DirectByteBuffer
-
Field Summary
Fields inherited from class top.untold.frostlumen.core.tool.GCCleanable
cleanable, CLEANER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intvoidwriteByte(byte value) voidwriteByte(byte v1, byte v2, byte v3, byte v4) voidwriteBytesFromIntsWithForcedConversion(int v1, int v2, int v3, int v4) voidwriteFloat(float value) voidwriteFloat(float v1, float v2) voidwriteFloat(float v1, float v2, float v3, float v4) voidwriteInt(int value) voidwriteInt(int v1, int v2) voidwriteInt(int v1, int v2, int v3, int v4) Methods inherited from class top.untold.frostlumen.core.tool.GCCleanable
getGlobalCleaner, setOnGCRecycle
-
Constructor Details
-
DirectByteBuffer
public DirectByteBuffer(int capacity)
-
-
Method Details
-
writeFloat
public void writeFloat(float value) -
writeFloat
public void writeFloat(float v1, float v2) -
writeFloat
public void writeFloat(float v1, float v2, float v3, float v4) -
writeInt
public void writeInt(int value) -
writeInt
public void writeInt(int v1, int v2) -
writeInt
public void writeInt(int v1, int v2, int v3, int v4) -
writeByte
public void writeByte(byte value) -
writeByte
public void writeByte(byte v1, byte v2, byte v3, byte v4) -
writeBytesFromIntsWithForcedConversion
public void writeBytesFromIntsWithForcedConversion(int v1, int v2, int v3, int v4) -
getNioDirectByteBuffer
-
clear
public void clear() -
getWrittenBytes
public int getWrittenBytes()
-