22OF_ASSUME_NONNULL_BEGIN
36OF_SUBCLASSING_RESTRICTED
39 unsigned char *_Nullable _items;
40 size_t _count, _itemSize;
41 bool _freeWhenDone, _allowsSwappableMemory;
48@property (readonly, nonatomic)
bool allowsSwappableMemory;
56@property (readonly, nonatomic)
void *mutableItems OF_RETURNS_INNER_POINTER;
70+ (void)preallocateUnswappableMemoryWithSize: (
size_t)size;
81+ (instancetype)dataWithCount: (
size_t)count
82 allowsSwappableMemory: (
bool)allowsSwappableMemory;
94+ (instancetype)dataWithCount: (
size_t)count
95 itemSize: (
size_t)itemSize
96 allowsSwappableMemory: (
bool)allowsSwappableMemory;
98+ (instancetype)dataWithItems: (const
void *)items
99 count: (
size_t)count OF_UNAVAILABLE;
100+ (instancetype)dataWithItems: (const
void *)items
102 itemSize: (
size_t)itemSize OF_UNAVAILABLE;
103+ (instancetype)dataWithItemsNoCopy: (
void *)items
105 freeWhenDone: (
bool)freeWhenDone OF_UNAVAILABLE;
106+ (instancetype)dataWithItemsNoCopy: (
void *)items
108 itemSize: (
size_t)itemSize
109 freeWhenDone: (
bool)freeWhenDone OF_UNAVAILABLE;
111+ (instancetype)dataWithContentsOfFile: (
OFString *)path OF_UNAVAILABLE;
113+ (instancetype)dataWithContentsOfIRI: (
OFIRI *)IRI OF_UNAVAILABLE;
114+ (instancetype)dataWithStringRepresentation: (
OFString *)string OF_UNAVAILABLE;
115+ (instancetype)dataWithBase64EncodedString: (
OFString *)string OF_UNAVAILABLE;
126- (instancetype)initWithCount: (
size_t)count
127 allowsSwappableMemory: (
bool)allowsSwappableMemory;
139- (instancetype)initWithCount: (
size_t)count
140 itemSize: (
size_t)itemSize
141 allowsSwappableMemory: (
bool)allowsSwappableMemory
142 OF_DESIGNATED_INITIALIZER;
144- (instancetype)init OF_UNAVAILABLE;
145- (instancetype)initWithItemSize: (
size_t)itemSize OF_UNAVAILABLE;
146- (instancetype)initWithItems: (const
void *)items
147 count: (
size_t)count OF_UNAVAILABLE;
148- (instancetype)initWithItems: (const
void *)items
150 itemSize: (
size_t)itemSize OF_UNAVAILABLE;
151- (instancetype)initWithItemsNoCopy: (
void *)items
153 freeWhenDone: (
bool)freeWhenDone OF_UNAVAILABLE;
154- (instancetype)initWithItemsNoCopy: (
void *)items
156 itemSize: (
size_t)itemSize
157 freeWhenDone: (
bool)freeWhenDone OF_UNAVAILABLE;
159- (instancetype)initWithContentsOfFile: (
OFString *)path OF_UNAVAILABLE;
161- (instancetype)initWithContentsOfIRI: (
OFIRI *)IRI OF_UNAVAILABLE;
162- (instancetype)initWithStringRepresentation: (
OFString *)string OF_UNAVAILABLE;
163- (instancetype)initWithBase64EncodedString: (
OFString *)string OF_UNAVAILABLE;
174- (
void *)mutableItemAtIndex: (
size_t)index OF_RETURNS_INNER_POINTER;
185- (bool)isEqual: (nullable
id)object;
192- (
OFString *)stringRepresentation OF_UNAVAILABLE;
193- (
OFString *)stringByBase64Encoding OF_UNAVAILABLE;
195- (void)writeToFile: (
OFString *)path OF_UNAVAILABLE;
197- (void)writeToIRI: (
OFIRI *)IRI OF_UNAVAILABLE;
198- (
OFData *)messagePackRepresentation OF_UNAVAILABLE;
A class for storing arbitrary data in an array.
Definition OFData.h:46
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition OFIRI.h:41
A class for storing arbitrary data in secure (non-swappable) memory, securely wiping it when it gets ...
Definition OFSecureData.h:38
A class for handling strings.
Definition OFString.h:143