|
| bool | resize (size_type nRequestedSize) noexcept |
| | Make sure the capacity is at least nRequestedSize and allocate memory if needed, and change the size to nRequestedSize. More...
|
| |
| bool | reserve (size_type nRequestedSize) noexcept |
| | Make sure the capacity is at least nRequestedSize and allocate memory if needed, but do not change the size. More...
|
| |
| bool | shrink_to_fit () noexcept |
| | Reduce capacity to fit the size, possibly moving data to the internal buffer if the size becomes small. More...
|
| |
|
void | free () noexcept |
| | Free allocated memory.
|
| |
| QX_FORCE_INLINE std::byte * | data () noexcept |
| | Get SBO data: from a buffer or from a heap. More...
|
| |
| QX_FORCE_INLINE const std::byte * | data () const noexcept |
| | Get SBO data: from a buffer or from a heap. More...
|
| |
| QX_FORCE_INLINE size_type | size () const noexcept |
| | Get SBO size (bytes) More...
|
| |
| QX_FORCE_INLINE size_type | capacity () const noexcept |
| | Get SBO capacity (bytes) More...
|
| |
| QX_FORCE_INLINE bool | is_small () const noexcept |
| | Is the SBO small and fits into the local buffer. More...
|
| |
template<class traits_t>
class qx::sbo_bytes< traits_t >
A type erased small buffer object that works with raw data.
- Template Parameters
-
| traits_t | - SBO traits type |
- Author
- Khrapov
- Date
- 20.12.2025
Definition at line 30 of file sbo_bytes.h.