->THRIFT

The ->THRIFTC function serializes a map as a thrift structure using the TCompactProtocol.

The function needs a TBASE instance describing the target structure.

Signature

Examples

<' struct message { 1: i32 int, 2: i64 long, 3: string characterstring, } '> THRIFTC 'message' GET 'tbase' STORE { 'int' 42 'long' 0x7FFFFFFFFFFFFFFF 'characterstring' '@@@ } $tbase ->THRIFT