Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Data.h"
#include "Hash.h"
#include "MutableData.h"
Go to the source code of this file.
Macros | |
#define | _Class _Data |
#define | DATA_BLOCK_SIZE 4096 |
Functions | |
Class * | _Data (void) |
static Object * | copy (const Object *self) |
static Data * | dataWithBytes (const uint8_t *bytes, size_t length) |
static Data * | dataWithConstMemory (const ident mem, size_t length) |
static Data * | dataWithContentsOfFile (const char *path) |
static Data * | dataWithMemory (ident mem, size_t length) |
static void | dealloc (Object *self) |
static int | hash (const Object *self) |
static void | initialize (Class *clazz) |
static Data * | initWithBytes (Data *self, const uint8_t *bytes, size_t length) |
static Data * | initWithConstMemory (Data *self, const ident mem, size_t length) |
static Data * | initWithContentsOfFile (Data *self, const char *path) |
static Data * | initWithMemory (Data *self, ident mem, size_t length) |
static _Bool | isEqual (const Object *self, const Object *other) |
static MutableData * | mutableCopy (const Data *self) |
static _Bool | writeToFile (const Data *self, const char *path) |
Class * _Data | ( | void | ) |
Definition at line 283 of file Data.c.
Definition at line 42 of file Data.c.
|
static |
Definition at line 118 of file Data.c.
|
static |
Definition at line 127 of file Data.c.
Definition at line 136 of file Data.c.
|
static |
Definition at line 52 of file Data.c.
|
static |
|
static |
Definition at line 260 of file Data.c.
Definition at line 159 of file Data.c.
Definition at line 174 of file Data.c.
Definition at line 209 of file Data.c.
Definition at line 84 of file Data.c.
|
static |
Definition at line 223 of file Data.c.
|
static |