class FlatbufferSerializer

Declaration

class FlatbufferSerializer : public ISerializer { /* full declaration omitted */ };

Description

Converts messages to and from bytes. Implement serializeImpl() and deserializeImpl() to add a serialization backend.

Declared at: robot_comm/include/robot_comm/serialization/FlatbufferSerializer.h:10

Inherits from: ISerializer

Method Overview

  • public robot_comm::SerializationBackend backend() const
  • protected std::Optional<void *> deserializeImpl(robot_comm::MessageType type, const uint8_t * data, size_t size)
  • protected robot_comm::ByteBuffer serializeImpl(robot_comm::MessageType type, const void * msg)

Inherited from ISerializer:

Methods

robot_comm::SerializationBackend backend() const

Declared at: robot_comm/include/robot_comm/serialization/FlatbufferSerializer.h:13

std::Optional<void*> deserializeImpl(
    robot_comm::MessageType type,
    const uint8_t* data,
    size_t size)

Declared at: robot_comm/include/robot_comm/serialization/FlatbufferSerializer.h:21

Parameters

robot_comm::MessageType type
const uint8_t* data
size_t size

robot_comm::ByteBuffer serializeImpl(
    robot_comm::MessageType type,
    const void* msg)

Declared at: robot_comm/include/robot_comm/serialization/FlatbufferSerializer.h:19

Parameters

robot_comm::MessageType type
const void* msg