# ChunkType

enum ChunkType : Enum<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

TYPE_0
Link copied to clipboard
TYPE_0

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).

TYPE_1
Link copied to clipboard
TYPE_1

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

TYPE_2
Link copied to clipboard
TYPE_2

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.

TYPE_3
Link copied to clipboard
TYPE_3

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

entries
Link copied to clipboard
val entries: EnumEntries<ChunkType>

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

mark
Link copied to clipboard
val mark: Byte
name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
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.)

values
Link copied to clipboard
fun values(): Array<ChunkType>

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