BEEP-8 Helper Lib 1.0.0
|
Module for managing binary data with named registrations. More...
#include <cstddef>
#include <string>
#include <unordered_map>
Go to the source code of this file.
Classes | |
class | CBinHolder |
class | CBin |
Module for managing binary data with named registrations.
This module provides functionality to manage binary data using the CBin
and CBinHolder
classes. Specifically, it allows for the registration of binary data with a name and provides methods to retrieve this data as needed.
The main components of this module are:
CBin
objects by registering them with a name and providing methods to search and retrieve CBin
objects by name.The CBin
class is designed to hold the address, size, and name of binary data. It is initialized through its constructor and provides methods to access the address and size of the binary data.
CBin(const char* name_, const void* addr_, size_t size_)
Addr() const
: Returns the address of the data.Size() const
: Returns the size of the data.The CBinHolder
class is responsible for managing CBin
objects. It supports registering CBin
objects with a name and provides static methods to retrieve the objects by name. It also offers a method to get a dictionary of all registered CBin
objects.
Below is an example of how to use this module: