Goby3 3.5.1
2026.06.04
Loading...
Searching...
No Matches
goby::middleware::SerializerParserHelper< std::string, MarshallingScheme::CSTR > Struct Reference

Example usable specialization for std::string using a null terminated array of bytes (C string). Likely not the best choice for production use. More...

#include <goby/middleware/marshalling/cstr.h>

Static Public Member Functions

static std::vector< char > serialize (const std::string &msg)
static std::string type_name (const std::string &d=std::string())
template<typename CharIterator>
static std::shared_ptr< std::string > parse (CharIterator bytes_begin, CharIterator bytes_end, CharIterator &actual_end, const std::string &type=type_name())

Detailed Description

Example usable specialization for std::string using a null terminated array of bytes (C string). Likely not the best choice for production use.

Definition at line 36 of file cstr.h.

Member Function Documentation

◆ parse()

template<typename CharIterator>
std::shared_ptr< std::string > goby::middleware::SerializerParserHelper< std::string, MarshallingScheme::CSTR >::parse ( CharIterator bytes_begin,
CharIterator bytes_end,
CharIterator & actual_end,
const std::string & type = type_name() )
inlinestatic

Definition at line 48 of file cstr.h.

◆ serialize()

std::vector< char > goby::middleware::SerializerParserHelper< std::string, MarshallingScheme::CSTR >::serialize ( const std::string & msg)
inlinestatic

Definition at line 38 of file cstr.h.

◆ type_name()

std::string goby::middleware::SerializerParserHelper< std::string, MarshallingScheme::CSTR >::type_name ( const std::string & d = std::string())
inlinestatic

Definition at line 45 of file cstr.h.


The documentation for this struct was generated from the following file:
  • goby/middleware/marshalling/cstr.h