|
Turi Create
4.0
|
#include <core/generics/blob.hpp>
Public Member Functions | |
| blob () | |
| user information More... | |
| blob (size_t new_size) | |
| blob (size_t osize, void *odata) | |
| blob (const blob &b) | |
| template<typename T > | |
| T & | as () |
| template<typename T > | |
| const T & | as () const |
| template<typename T > | |
| T * | as_ptr () |
| template<typename T > | |
| const T * | as_ptr () const |
| size_t | size () const |
| void * | data () |
| const void * | data () const |
| void | copy (size_t osize, void *odata) |
| void | copy (const blob &other) |
| blob | copy () const |
| void | resize (size_t new_size) |
| void | clear () |
| void | swap (blob &b) |
blob is the general representation of a "block" of information. . 'data' must be exactly 'length' bytes and must be entirely self contained. It must not hold references to other memory regions. That is to say, I should be able read off exactly 'length' bytes from 'data', and send it across a network/write it to a disk/etc, and the information should still be consistent The blob is self-managed and will free and delete the underlying memory when it goes out of scope.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |