Defined in File json_types.hpp
Base Type
public std::vector< uint8_t >
-
class PythonByteContainer : public std::vector<uint8_t>
A container class derived from std::vector<uint8_t> to make it compatible with nlohmann::json to hold arbitrary Python objects as bytes.
Public Functions
- PythonByteContainer() = default
Construct a new Python Byte Container object.
-
PythonByteContainer(mrc::pymrc::PyHolder py_obj)
Construct a new Python Byte Container object by initializing it with a
mrc::pymrc::PyHolder
.- Parameters
py_obj – a PyHolder object that holds a Python object to be stored into the container
-
mrc::pymrc::PyHolder get_py_obj() const
Get the PyHolder object from the container.
- Returns
mrc::pymrc::PyHolder the PyHolder object stored in the container