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 (mondain@gmail.com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
ByteArrayToByteBuffer
(byte[] byteBuf, org.apache.mina.core.buffer.IoBuffer buf) static void
ByteArrayToNioByteBuffer
(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
-