VStreamChunkX

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 AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def first: Boolean

first chunk of message

first chunk of message

Attributes

def index: Long

number of chunk or total if first

number of chunk or total if first

Attributes

next chunkx for a message

next chunkx for a message

Attributes

def position: Long

the order of chunk in message

the order of chunk in message

Attributes

Returns

long order

def single: Boolean

if this chunk contains the whole message (no split/buffer needed)

if this chunk contains the whole message (no split/buffer needed)

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val x: Long