|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.net.rtmp.RTMPUtils
public class RTMPUtils
RTMP utilities class.
Field Summary |
---|
Constructor Summary | |
---|---|
RTMPUtils()
|
Method Summary | |
---|---|
static int |
decodeChannelId(int header,
int byteCount)
Decode channel id. |
static byte |
decodeHeaderSize(int header,
int byteCount)
Decode header size. |
static void |
encodeHeaderByte(org.apache.mina.core.buffer.IoBuffer out,
byte headerSize,
int channelId)
Encodes header size marker and channel id into header marker. |
static int |
getHeaderLength(byte headerSize)
Return header length from marker value. |
static int |
readMediumInt(org.apache.mina.core.buffer.IoBuffer in)
|
static int |
readMediumIntOld(org.apache.mina.core.buffer.IoBuffer in)
|
static int |
readReverseInt(org.apache.mina.core.buffer.IoBuffer in)
Read integer in reversed order. |
static int |
readUnsignedMediumInt(org.apache.mina.core.buffer.IoBuffer in)
|
static int |
readUnsignedMediumIntOld(org.apache.mina.core.buffer.IoBuffer in)
|
static void |
writeMediumInt(org.apache.mina.core.buffer.IoBuffer out,
int value)
|
static void |
writeReverseInt(org.apache.mina.core.buffer.IoBuffer out,
int value)
Writes reversed integer to buffer. |
static void |
writeReverseIntOld(org.apache.mina.core.buffer.IoBuffer out,
int value)
Writes reversed integer to buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RTMPUtils()
Method Detail |
---|
public static void writeReverseIntOld(org.apache.mina.core.buffer.IoBuffer out, int value)
out
- Buffervalue
- Integer to writepublic static void writeReverseInt(org.apache.mina.core.buffer.IoBuffer out, int value)
out
- Buffervalue
- Integer to writepublic static void writeMediumInt(org.apache.mina.core.buffer.IoBuffer out, int value)
out
- output buffervalue
- value to writepublic static int readUnsignedMediumInt(org.apache.mina.core.buffer.IoBuffer in)
in
- input
public static int readUnsignedMediumIntOld(org.apache.mina.core.buffer.IoBuffer in)
in
- input
public static int readMediumIntOld(org.apache.mina.core.buffer.IoBuffer in)
in
- input
public static int readMediumInt(org.apache.mina.core.buffer.IoBuffer in)
in
- input
public static int readReverseInt(org.apache.mina.core.buffer.IoBuffer in)
in
- Input buffer
public static void encodeHeaderByte(org.apache.mina.core.buffer.IoBuffer out, byte headerSize, int channelId)
out
- output bufferheaderSize
- Header size markerchannelId
- Channel usedpublic static int decodeChannelId(int header, int byteCount)
header
- HeaderbyteCount
- byte count
public static byte decodeHeaderSize(int header, int byteCount)
header
- Header bytebyteCount
- byte count
public static int getHeaderLength(byte headerSize)
headerSize
- Header size marker value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |