Value

Struct for representing tag values.

Tagged union, allows to store 8/16/32-bit integers, floats, chars, strings, and arrays of integers/floats.

Constructors

this
this(T value)

Members

Functions

is_array_of_floats
bool is_array_of_floats()

float[]

is_array_of_integers
bool is_array_of_integers()

ubyte[]/byte[]/ushort[]/short[]/uint[]/int[]

is_character
bool is_character()

char

is_float
bool is_float()

float

is_hexadecimal_string
bool is_hexadecimal_string()

'H' tag

is_integer
bool is_integer()

ubyte/byte/ushort/short/uint/int

is_nothing
bool is_nothing()

Holds null. Represents non-existing tag. Such values are used to remove tags.

is_numeric_array
bool is_numeric_array()

ubyte[]/byte[]/ushort[]/short[]/uint[]/int[]/float[]

is_signed
bool is_signed()

byte/short/int

is_string
bool is_string()

'Z' or 'H' tag

is_unsigned
bool is_unsigned()

ubyte/ushort/uint

opAssign
void opAssign(Value v)
void opAssign(typeof(null) n)
opEquals
bool opEquals(T val)
setHexadecimalFlag
void setHexadecimalFlag()

sets 'H' tag instead of default 'Z'. Is not expected to be used much.

tag
ubyte tag()

Designates the type of currently stored value.

toJson
void toJson(Sink sink)

JSON representation

toJson
string toJson()

JSON representation

toMsgpack
void toMsgpack(Packer packer)

Serializes value in MessagePack format

toSam
string toSam()
void toSam(Sink sink)

SAM representation

toString
string toString()

Variables

_tag
ubyte _tag;
Undocumented in source.
bam_typeid
char bam_typeid;

If this is an array, one of cCsSiIf. Otherwise, one of AcCsSiIfZH

Meta