NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
buffer_utils.hpp File Reference
#include <algorithm>
#include <cstdint>
#include <string>
#include <vector>
#include <storage_common/os_utils.hpp>
Include dependency graph for buffer_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 storage
 

Functions

char * storage::to_buffer (char *buffer, uint8_t value)
 
char * storage::to_buffer (char *buffer, uint16_t value)
 
char * storage::to_buffer (char *buffer, uint32_t value) noexcept
 
char * storage::to_buffer (char *buffer, uint64_t value) noexcept
 
char * storage::to_buffer (char *buffer, std::string const &value) noexcept
 
char * storage::to_buffer (char *buffer, std::vector< uint8_t > const &value) noexcept
 
template<typename T >
char const * storage::from_buffer (char const *buffer, T &value)
 
template<>
char const * storage::from_buffer (char const *buffer, uint8_t &value)
 
template<>
char const * storage::from_buffer (char const *buffer, uint16_t &value)
 
template<>
char const * storage::from_buffer (char const *buffer, uint32_t &value)
 
template<>
char const * storage::from_buffer (char const *buffer, uint64_t &value)
 
template<>
char const * storage::from_buffer (char const *buffer, std::string &value)
 
template<>
char const * storage::from_buffer (char const *buffer, std::vector< uint8_t > &value)
 
std::string storage::bytes_to_hex_str (char const *bytes, size_t byte_count)
 
void storage::bytes_to_hex_str (char const *bytes, size_t byte_count, std::string &str)
 
size_t storage::aligned_size (size_t alignment, size_t size)