Package org.red5.server.net.rtmp.event
Class SerializeUtils
java.lang.Object
org.red5.server.net.rtmp.event.SerializeUtils
The utility class provides conversion methods to ease the use of byte arrays, Mina IoBuffers, and NIO ByteBuffers.
- Author:
- Paul Gregoire ([email protected])
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidByteArrayToByteBuffer(byte[] byteBuf, org.apache.mina.core.buffer.IoBuffer buf) static voidByteArrayToNioByteBuffer(byte[] byteBuf, ByteBuffer buf) static byte[]ByteBufferToByteArray(org.apache.mina.core.buffer.IoBuffer buf) static byte[]
-
Constructor Details
-
SerializeUtils
public SerializeUtils()
-
-
Method Details
-
ByteBufferToByteArray
public static byte[] ByteBufferToByteArray(org.apache.mina.core.buffer.IoBuffer buf) -
NioByteBufferToByteArray
-
ByteArrayToByteBuffer
public static void ByteArrayToByteBuffer(byte[] byteBuf, org.apache.mina.core.buffer.IoBuffer buf) -
ByteArrayToNioByteBuffer
-