|
using | type = uint8_t[] |
|
using | pointer = uint8_t* |
|
using | uptr = std::unique_ptr<type, std::function<void(pointer)>> |
|
Definition at line 156 of file base_types.hpp.
◆ pointer
using bnb::data_t::pointer = uint8_t* |
◆ type
using bnb::data_t::type = uint8_t[] |
◆ uptr
using bnb::data_t::uptr = std::unique_ptr<type, std::function<void(pointer)>> |
◆ data_t()
bnb::data_t::data_t |
( |
uptr | d, |
|
|
size_t | s ) |
|
inline |
Definition at line 187 of file base_types.hpp.
188 : data(std::move(d))
189 , size(s)
190 {
191 }
◆ create_non_owning() [1/2]
static data_t bnb::data_t::create_non_owning |
( |
std::shared_ptr< uint8_t > | datum, |
|
|
size_t | size ) |
|
inlinestatic |
Definition at line 164 of file base_types.hpp.
165 {
166 return data_t{
167 uptr(datum.get(), [](pointer) { }),
168 size};
169 }
◆ create_non_owning() [2/2]
static data_t bnb::data_t::create_non_owning |
( |
uint8_t * | datum, |
|
|
size_t | size ) |
|
inlinestatic |
Definition at line 171 of file base_types.hpp.
172 {
173 return data_t{
174 uptr(datum, [](pointer) {}),
175 size};
176 }
◆ reserve()
void bnb::data_t::reserve |
( |
size_t | reserve_size | ) |
|
|
inline |
Definition at line 178 of file base_types.hpp.
179 {
180 if (size < reserve_size) {
181 data = std::make_unique<type>(reserve_size);
182 size = reserve_size;
183 }
184 }
◆ data
◆ size
The documentation for this struct was generated from the following file:
- /Users/itumashyk/Workspace/banuba_sdk/libs/types/bnb/types/base_types.hpp