Standalone encoding/decoding functions
Socket encoding/decoding functions
Decodes the provided bformat message into the message itself
Encodes the provided message into the bformat format
Receives a message from the provided socket by decoding the streamed bytes into bformat and finally placing the resulting payload in the provided array
Encodes the provided message into the bformat format and sends it over the provided socket
bformat encoder/decoder