MobilityDB 1.1

◆ datum_as_wkb()

uint8_t * datum_as_wkb ( Datum  value,
meosType  type,
uint8_t  variant,
size_t *  size_out 
)

Return the WKB representation of a datum value.

Parameters
[in]valueValue
[in]typeType of the value
[in]variantUnsigned bitmask value. Accepts either WKB_NDR or WKB_XDR, and WKB_HEX. For example: Variant = WKB_NDR would return the little-endian WKB form. For example: Variant = (WKB_XDR | WKB_HEX) would return the big-endian WKB form as hex-encoded ASCII.
[out]size_outIf supplied, will return the size of the returned memory segment, including the null terminator in the case of ASCII.
Note
Caller is responsible for freeing the returned array.