PrioritySpec

The structure to specify stream dependency.

Constructors

this
this(ubyte[] data)
Undocumented in source.
this
this(int _stream_id, int _weight, bool _exclusive)

Initializes PrioritySpec with the |stream_id| of the stream to depend on with |weight| and its exclusive flag. If |exclusive| is true, exclusive flag is set.

Members

Functions

adjustWeight
void adjustWeight()
Undocumented in source. Be warned that the author may not have intended to support it.
pack
void pack(ubyte[] buf)

Packs the PrioritySpec in |buf|. This function assumes |buf| has enough space for serialization.

unpack
void unpack(ubyte[] payload)

Unpacks the priority specification from payload |payload| of length |payload.length| to |pri_spec|. This function assumes the |payload| contains whole priority specification.

Variables

exclusive
bool exclusive;
Undocumented in source.
stream_id
int stream_id;

The stream ID of the stream to depend on. Specifying 0 makes stream not depend any other stream.

weight
int weight;
Undocumented in source.

Meta