|
||||||||||
| 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(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(IoBuffer in)
|
static int |
readMediumIntOld(IoBuffer in)
|
static int |
readReverseInt(IoBuffer in)
Read integer in reversed order. |
static int |
readUnsignedMediumInt(IoBuffer in)
|
static int |
readUnsignedMediumIntOld(IoBuffer in)
|
static void |
writeMediumInt(IoBuffer out,
int value)
|
static void |
writeReverseInt(IoBuffer out,
int value)
Writes reversed integer to buffer. |
static void |
writeReverseIntOld(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(IoBuffer out,
int value)
out - Buffervalue - Integer to write
public static void writeReverseInt(IoBuffer out,
int value)
out - Buffervalue - Integer to write
public static void writeMediumInt(IoBuffer out,
int value)
out - output buffervalue - value to writepublic static int readUnsignedMediumInt(IoBuffer in)
in - input
public static int readUnsignedMediumIntOld(IoBuffer in)
in - input
public static int readMediumIntOld(IoBuffer in)
in - input
public static int readMediumInt(IoBuffer in)
in - input
public static int readReverseInt(IoBuffer in)
in - Input buffer
public static void encodeHeaderByte(IoBuffer out,
byte headerSize,
int channelId)
out - output bufferheaderSize - Header size markerchannelId - Channel used
public 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 | |||||||||