readStruct

Deserializes a Thrift struct from a protocol.

Using the Protocol template parameter, the concrete TProtocol to use can be be specified. If the pointerStruct parameter is set to true, the struct fields are expected to be pointers to the actual data. This is used internally (combined with TPResultStruct) and usually should not be used in user code.

This is a free function to make it possible to read exisiting structs from the wire without altering their definitions.

void
readStruct
(
T
Protocol
alias fieldMetaData = cast(TFieldMeta[])null
bool pointerStruct = false
)
(
auto ref T s
,
Protocol p
)
if (
isTProtocol!Protocol
)

Meta