ChunkType

Created by pedro on 21/04/21.

timestamp = 3 bytes (timestamp of packet. If is greater than or equal to 16777215 (hexadecimal 0xFFFFFF), this field MUST be 16777215)

message length = 3 bytes (packet size)

message type id = 1 byte (represented by MessageType class)

message stream id = 4 bytes (transactionId as little endian format)

Entries

Link copied to clipboard

11 bytes long. This type MUST be used at the start of a chunk stream, and whenever the stream timestamp goes backward (e.g., because of a backward seek).

Link copied to clipboard

7 bytes long. The message stream ID is not included; this chunk takes the same stream ID as the preceding chunk. Streams with variable-sized messages (for example, many video formats) SHOULD use this format for the first chunk of each new message after the first

Link copied to clipboard

3 bytes long. Neither the stream ID nor the message length is included; this chunk has the same stream ID and message length as the preceding chunk. Streams with constant-sized messages (for example, some audio and data formats) SHOULD use this format for the first chunk of each message after the first.

Link copied to clipboard

Have no message header When a single message is split into chunks, all chunks of a message except the first one SHOULD use this type

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val mark: Byte
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): ChunkType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.