38typedef struct DataInterface DataInterface;
94 ObjectInterface objectInterface;
107 void (*appendBytes)(
Data *self,
const uint8_t *bytes,
size_t length);
116 void (*appendData)(
Data *self,
const Data *data);
136 Data *(*dataWithBytes)(
const uint8_t *bytes,
size_t length);
146 Data *(*dataWithCapacity)(
size_t capacity);
157 Data *(*dataWithConstMemory)(
const ident mem,
size_t length);
167 Data *(*dataWithContentsOfFile)(
const char *path);
178 Data *(*dataWithMemory)(
ident mem,
size_t length);
198 Data *(*initWithBytes)(
Data *self,
const uint8_t *bytes,
size_t length);
208 Data *(*initWithCapacity)(
Data *self,
size_t capacity);
219 Data *(*initWithConstMemory)(
Data *self,
const ident mem,
size_t length);
229 Data *(*initWithContentsOfFile)(
Data *self,
const char *path);
250 Data *(*initWithMemory)(
Data *self,
ident mem,
size_t length);
261 void (*setLength)(
Data *self,
size_t length);
271 bool (*writeToFile)(
const Data *self,
const char *path);
OBJECTIVELY_EXPORT Class * _Data(void)
void(* DataDestructor)(ident mem)
Data may optionally reference destructor to be called on dealloc.
Object is the root Class of The Objectively Class hierarchy.
void * ident
The identity type, similar to Objective-C id.
#define OBJECTIVELY_EXPORT
The runtime representation of a Class.
DataInterface * interface
The interface.
DataDestructor destroy
An optional destructor that, if set, is called on dealloc.
Object object
The superclass.
size_t length
The length of bytes.
uint8_t * bytes
The bytes.
Object is the root Class of The Objectively Class hierarchy.