aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
GumBinaryIO.h File Reference

Shared binary I/O helpers for GUM (jgum/bgum) serialization. More...

#include <cstdint>
#include <istream>
#include <ostream>
#include <stdexcept>
#include <vector>
#include <agrum/base/io/GumBinaryIO_inl.h>
Include dependency graph for GumBinaryIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities

Functions

std::vector< uint8_t > gum::_readVector_ (std::istream &is)
 Reads a length-prefixed byte vector from a binary stream (bgum format).
void gum::_writeVector_ (std::ostream &os, const std::vector< uint8_t > &vec)
 Writes a length-prefixed byte vector to a binary stream (bgum format).

Detailed Description

Shared binary I/O helpers for GUM (jgum/bgum) serialization.

Provides inline helpers to read/write a length-prefixed byte vector used by the msgpack binary format (.bgum). Defined here once to avoid duplication across GumBNReader/Writer, GumIDReader/Writer and GumMRFReader/Writer.

Author
Pierre-Henri WUILLEMIN(_at_LIP6)

Definition in file GumBinaryIO.h.