package velocystream
- Alphabetic
- Public
- All
Type Members
-
final
case class
VStreamChunk(header: VStreamChunkHeader, data: ByteVector) extends Product with Serializable
chunk of message
chunk of message
- header
header to reassemble message
- data
chunk payload
-
final
case class
VStreamChunkHeader(x: VStreamChunkX, id: Long, length: Long) extends Product with Serializable
header of chunk
header of chunk
- x
chunkx
- id
unique message identifier
- length
total size of message in bytes
-
final
class
VStreamChunkX extends AnyVal
ChunkX chunk/isFirstChunk (upper 31bits/lowest bit)
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.
- trait VStreamConfiguration extends AnyRef
-
final
case class
VStreamMessage(id: Long, data: ByteVector) extends Product with Serializable
velocystream message in or out
velocystream message in or out
- id
unique identifier
- data
data bytes
Value Members
- object VStreamChunk extends Serializable
- object VStreamChunkHeader extends Serializable
- object VStreamChunkX
- object VStreamConfiguration