avokka.velocystream.VStreamChunkX
See theVStreamChunkX companion object
final class VStreamChunkX(val x: Long) extends AnyVal
ChunkX chunk/isFirstChunk (upper 31bits/lowest bit)
"chunk" and "isFirstChunk" are combined into an unsigned 32bit value
chunk = chunkX >> 1 isFirstChunk = chunkX & 0x1
For the first chunk of a message, the low bit of the second uint32_t is set, for all subsequent ones it is reset. In the first chunk of a message, the number "chunk" is the total number of chunks in the message, in all subsequent chunks, the number "chunk" is the current number of this chunk.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
In this article