AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
|
Provide utilities for sending protobufs. More...
Go to the source code of this file.
Functions | |
uint32_t | convert_framing_size (uint32_t len, uint8_t *bytes) |
Convert an unsigned int to varint32 so that google’s C++ protobuf libs can read it. More... | |
int | write_protobuf (socket_t sock, amqp_envelope_t *envelope) |
Write a protobuf, with a varint32 framing, and padding at the end from an envelope. More... | |
Provide utilities for sending protobufs.
Definition in file protobuf_framing.c.
uint32_t convert_framing_size | ( | uint32_t | len, |
uint8_t * | bytes | ||
) |
Convert an unsigned int to varint32 so that google’s C++ protobuf libs can read it.
Convert unsigned int to varint32
Definition at line 13 of file protobuf_framing.c.
int write_protobuf | ( | socket_t | sock, |
amqp_envelope_t * | envelope | ||
) |
Write a protobuf, with a varint32 framing, and padding at the end from an envelope.
Write a protobuf, with a varint32 framing, and padding at the end
Definition at line 31 of file protobuf_framing.c.