Module parse

Module parse 

Source
Expand description

Parsing functions for the messages that are sent on communications between two different ends using the Decentraland RPC implementation.

Enums§

ParseErrors
Errors produced by parse_protocol_message

Functions§

build_message_identifier
Build message identifier from type and number, and returns one number which it’s the message_identifier
parse_header
Decode bytes into RpcMessageHeader to get message type and message number which are two number that compose the message_identifier in the RpcMessageHeader struct
parse_message_identifier
Parse message type and number from message identifier
parse_protocol_message
Parse protocol message from bytes