Class MathHelper
java.lang.Object
io.github.kosmx.emotes.common.tools.MathHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBufferreadFromIStream(InputStream stream) static byte[]safeGetBytesFromBuffer(ByteBuffer byteBuffer) IfByteBufferis wrapped, it is safe to get the array but if is direct manual read is required.
-
Constructor Details
-
MathHelper
public MathHelper()
-
-
Method Details
-
readFromIStream
- Throws:
IOException
-
safeGetBytesFromBuffer
IfByteBufferis wrapped, it is safe to get the array but if is direct manual read is required.- Parameters:
byteBuffer- get the bytes from- Returns:
- the byte array
-