OptionalBuffer

Optional buffers can be optionally not sent/received.

If this type is not set, then it does not send the default value.

Constructors

this
this(ValueType val)

Create a Buffer

Alias This

opGet

Members

Functions

clean
void clean()

Clears the value, marks as not set

deserialize
void deserialize(long msgdata, ubyte[] data)

Deserialize data into a buffer

exists
bool exists()

Test the existence of a value

opAssign
deprecated auto opAssign(ValueType val)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
auto opAssign(ValueType val)
Undocumented in source. Be warned that the author may not have intended to support it.
opGet
ValueType opGet()
Undocumented in source. Be warned that the author may not have intended to support it.
opGet
deprecated ValueType opGet()
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
ubyte[] serialize()

Serialize the buffer

Parameters

id

The numeric ID for the message

TypeString

The encoding type of the data

RealType

The type the data is stored as internally

isDeprecated

Deprecates the accessors if true

defaultValue

The default value for the internal storage

Meta