Function parseType
Parses the MessagePack object with specified type.
auto auto parseType(MsgpackType type)
(
ref ubyte[DataSize!type] data
)
if (!isFixExt!type);
ref ubyte[DataSize!type-1] parseType(MsgpackType type)
(
ref ubyte[DataSize!type] data
)
if (isFixExt!type);
Note
For fixext types returns a ubyte[N] reference to the data input buffer. The first element in the return value contains the type, the rest of the array is the ubyte[fixExtLength] part.
Warning
The type is not verified in this function and this function will return incorrect results if the type does not match the input data.
Memory safety is not affected when passing a wrong type.