Skip to main content

Module codec

Module codec 

Source
Expand description

Thrift’s binary (strict, and the old non-strict form on read) and compact protocols over a byte buffer, to and from a typed value tree. Parsing reports Incomplete when the buffer ends early, so the unframed transport can read more.

Structs§

Incomplete
The buffer ended before the message did.
Message

Enums§

Protocol
Tv

Constants§

CALL
EXCEPTION
INTERNAL_ERROR
MAX_MESSAGE
ONEWAY
PROTOCOL_ERROR
REPLY
T_BOOL
T_BYTE
T_DOUBLE
T_I16
T_I32
T_I64
T_LIST
T_MAP
T_SET
T_STOP
T_STRING
T_STRUCT
T_UUID
UNKNOWN_METHOD

Functions§

application_exception
A TApplicationException body: 1: message, 2: type.
decode
Parse one message from the front of b: the message, its protocol and the bytes it used.
encode
is_incomplete