11 #ifndef _EMBEDDED_RPC__BASIC_SERIALIZATION_H_ 12 #define _EMBEDDED_RPC__BASIC_SERIALIZATION_H_ 67 virtual void startWriteMessage(
message_type_t type, uint32_t service, uint32_t request, uint32_t sequence)
override;
75 virtual void writeData(uint32_t length,
const void *value);
82 virtual void write(
bool value)
override;
89 virtual void write(int8_t value)
override;
96 virtual void write(int16_t value)
override;
103 virtual void write(int32_t value)
override;
110 virtual void write(int64_t value)
override;
117 virtual void write(uint8_t value)
override;
124 virtual void write(uint16_t value)
override;
131 virtual void write(uint32_t value)
override;
138 virtual void write(uint64_t value)
override;
145 virtual void write(
float value)
override;
152 virtual void write(
double value)
override;
159 virtual void writePtr(uintptr_t value)
override;
167 virtual void writeString(uint32_t length,
const char *value)
override;
175 virtual void writeBinary(uint32_t length,
const uint8_t *value)
override;
182 virtual void startWriteList(uint32_t length)
override;
189 virtual void startWriteUnion(int32_t discriminator)
override;
196 virtual void writeNullFlag(
bool isNull)
override;
210 virtual void startReadMessage(
message_type_t &type, uint32_t &service, uint32_t &request,
211 uint32_t &sequence)
override;
219 virtual void readData(uint32_t length,
void *value);
226 virtual void read(
bool &value)
override;
233 virtual void read(int8_t &value)
override;
240 virtual void read(int16_t &value)
override;
247 virtual void read(int32_t &value)
override;
254 virtual void read(int64_t &value)
override;
261 virtual void read(uint8_t &value)
override;
268 virtual void read(uint16_t &value)
override;
275 virtual void read(uint32_t &value)
override;
282 virtual void read(uint64_t &value)
override;
289 virtual void read(
float &value)
override;
296 virtual void read(
double &value)
override;
303 virtual void readPtr(uintptr_t &value)
override;
311 virtual void readString(uint32_t &length,
char **value)
override;
319 virtual void readBinary(uint32_t &length, uint8_t **value)
override;
326 virtual void startReadList(uint32_t &length)
override;
333 virtual void startReadUnion(int32_t &discriminator)
override;
340 virtual void readNullFlag(
bool &isNull)
override;
367 virtual Codec *create(
void)
override;
374 virtual void dispose(
Codec *codec)
override;
381 #endif // _EMBEDDED_RPC__BASIC_SERIALIZATION_H_ message_type_t
Types of messages that can be encoded.
Definition: erpc_codec.hpp:35
Abstract serialization encoder/decoder interface.
Definition: erpc_codec.hpp:53
Abstract interface for codec factory.
Definition: erpc_codec.hpp:408
Simple binary serialization format.
Definition: erpc_basic_codec.hpp:41
static const uint32_t kBasicCodecVersion
Definition: erpc_basic_codec.hpp:44
Definition: erpc_arbitrated_client_manager.hpp:25
Basic codec factory implements functions from codec factory.
Definition: erpc_basic_codec.hpp:349
null_flag_t
Values of the uint8 flag prefixing nullable values.
Definition: erpc_basic_codec.hpp:30