|
||||||||||
| 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.common.ByteBuffer 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.common.ByteBuffer in)
|
static int |
readMediumIntOld(org.apache.mina.common.ByteBuffer in)
|
static int |
readReverseInt(org.apache.mina.common.ByteBuffer in)
Read integer in reversed order. |
static int |
readReverseIntOld(org.apache.mina.common.ByteBuffer in)
Read integer in reversed order. |
static int |
readUnsignedMediumInt(org.apache.mina.common.ByteBuffer in)
|
static int |
readUnsignedMediumIntOld(org.apache.mina.common.ByteBuffer in)
|
static void |
writeMediumInt(org.apache.mina.common.ByteBuffer out,
int value)
|
static void |
writeReverseInt(org.apache.mina.common.ByteBuffer out,
int value)
Writes reversed integer to buffer. |
static void |
writeReverseIntOld(org.apache.mina.common.ByteBuffer 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.common.ByteBuffer out,
int value)
out - Buffervalue - Integer to write
public static void writeReverseInt(org.apache.mina.common.ByteBuffer out,
int value)
out - Buffervalue - Integer to write
public static void writeMediumInt(org.apache.mina.common.ByteBuffer out,
int value)
out - value - public static int readUnsignedMediumInt(org.apache.mina.common.ByteBuffer in)
in -
public static int readUnsignedMediumIntOld(org.apache.mina.common.ByteBuffer in)
in -
public static int readMediumIntOld(org.apache.mina.common.ByteBuffer in)
in -
public static int readMediumInt(org.apache.mina.common.ByteBuffer in)
in -
public static int readReverseInt(org.apache.mina.common.ByteBuffer in)
in - Input buffer
public static int readReverseIntOld(org.apache.mina.common.ByteBuffer in)
in - Input buffer
public static void encodeHeaderByte(org.apache.mina.common.ByteBuffer out,
byte headerSize,
int channelId)
headerSize - Header size markerchannelId - Channel used
public static int decodeChannelId(int header,
int byteCount)
header - Header
public static byte decodeHeaderSize(int header,
int byteCount)
header - Header byte
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 | |||||||||