The Value class is a generic base class that implements methods common to several subclasses.
The classes List, Array, String, Struct and Record inherit from Value and implement (and in some cases override) methods particular to these specialized subclasses.
The main Value methods are listed below.
int compare(Value * x)
x and return an integer value
indicating the result of the comparison: a negative integer value if this is less than x,
zero if they are equal, and a positive integer value if this is greater than x.static Value * deserialize(char * buf, size_t & size)
bool equals(Value * x)
x and return a Boolean value
indicating the result of the comparison: true if the two values are equal,
false otherwise.static size_t fillBuf(char * dst, char const * src, size_t size)
size
bytes will be copied.int64_t intValue(void)
bool isNull(void)
true if the value is null,
false otherwise.bool isTrue(void)
void * pointer(void)
double realValue(void)
real Value by attempting to cast the Value to floating-point type.size_t serialize(char * buf, size_t & size)
String * stringValue(void)
time_t timeValue(void)
DateTime type.UnicodeString * unicodeStringValue(void)