libdcp
|
Class to hold an arbitrary block of data. More...
#include <array_data.h>
Public Member Functions | |
ArrayData (int size) | |
ArrayData (uint8_t const *data, int size) | |
ArrayData (boost::shared_array< uint8_t > data, int size) | |
ArrayData (boost::filesystem::path file) | |
uint8_t const * | data () const override |
uint8_t * | data () override |
int | size () const override |
void | set_size (int s) |
Public Member Functions inherited from dcp::Data | |
void | write (boost::filesystem::path file) const |
void | write_via_temp (boost::filesystem::path temp, boost::filesystem::path final) const |
Private Attributes | |
boost::shared_array< uint8_t > | _data |
int | _size = 0 |
Class to hold an arbitrary block of data.
Definition at line 54 of file array_data.h.
dcp::ArrayData::ArrayData | ( | boost::shared_array< uint8_t > | data, |
int | size | ||
) |
|
explicit |
Create an ArrayData by reading the contents of a file
file | Filename to read |
Definition at line 81 of file array_data.cc.
|
inline |
Set the size that will be returned from size()
Definition at line 90 of file array_data.h.
|
inlineoverridevirtual |
Implements dcp::Data.
Definition at line 85 of file array_data.h.
|
private |
amount of ‘valid’ data in _data; the array may be larger
Definition at line 97 of file array_data.h.