|
||||||||||
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 |
compareTimestamps(int a,
int b)
Compares two RTMP time stamps, accounting for time stamp wrapping. |
static int |
decodeChannelId(int header,
int byteCount)
Decode channel id. |
static byte |
decodeHeaderSize(int header,
int byteCount)
Decode header size. |
static long |
diffTimestamps(int a,
int b)
Calculates the delta between two time stamps, adjusting for time stamp wrapping. |
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 writepublic static void writeReverseInt(IoBuffer out, int value)
out
- Buffervalue
- Integer to writepublic 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 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
public static int compareTimestamps(int a, int b)
a
- First time stampb
- Second time stamp
public static long diffTimestamps(int a, int b)
a
- First time stampb
- Second time stamp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |