MobilityDB  1.0

◆ tpoint_to_wkb()

static uint8_t* tpoint_to_wkb ( const Temporal temp,
uint8_t  variant,
size_t *  size_out 
)
static

Convert the temporal value to a char * in WKB format.

Caller is responsible for freeing the returned array.

Parameters
[in]tempTemporal value
[in]variantUnsigned bitmask value. Accepts one of: WKB_ISO, WKB_EXTENDED, WKB_SFSQL. Accepts any of: WKB_NDR, WKB_HEX. For example: Variant = (WKB_ISO | WKB_NDR) would return the little-endian ISO form of WKB. For Example: Variant = (WKB_EXTENDED | WKB_HEX) would return the big-endian extended form of WKB, as hex-encoded ASCII (the "canonical form").
[out]size_outIf supplied, will return the size of the returned memory segment, including the null terminator in the case of ASCII.