18 OF_ASSUME_NONNULL_BEGIN
32 OF_SUBCLASSING_RESTRICTED
36 bool _allowsSwappableMemory;
42 @property (readonly, nonatomic)
bool allowsSwappableMemory;
50 @property (readonly, nonatomic)
void *mutableItems OF_RETURNS_INNER_POINTER;
64 + (void)preallocateUnswappableMemoryWithSize: (
size_t)size;
75 + (instancetype)dataWithCount: (
size_t)count
76 allowsSwappableMemory: (
bool)allowsSwappableMemory;
88 + (instancetype)dataWithCount: (
size_t)count
89 itemSize: (
size_t)itemSize
90 allowsSwappableMemory: (
bool)allowsSwappableMemory;
92 + (instancetype)dataWithItems: (const
void *)items
93 count: (
size_t)count OF_UNAVAILABLE;
94 + (instancetype)dataWithItems: (const
void *)items
96 itemSize: (
size_t)itemSize OF_UNAVAILABLE;
97 + (instancetype)dataWithItemsNoCopy: (
void *)items
99 freeWhenDone: (
bool)freeWhenDone OF_UNAVAILABLE;
100 + (instancetype)dataWithItemsNoCopy: (
void *)items
102 itemSize: (
size_t)itemSize
103 freeWhenDone: (
bool)freeWhenDone OF_UNAVAILABLE;
105 + (instancetype)dataWithContentsOfFile: (
OFString *)path OF_UNAVAILABLE;
107 + (instancetype)dataWithContentsOfURL: (
OFURL *)URL OF_UNAVAILABLE;
108 + (instancetype)dataWithStringRepresentation: (
OFString *)string OF_UNAVAILABLE;
109 + (instancetype)dataWithBase64EncodedString: (
OFString *)string OF_UNAVAILABLE;
120 - (instancetype)initWithCount: (
size_t)count
121 allowsSwappableMemory: (
bool)allowsSwappableMemory;
133 - (instancetype)initWithCount: (
size_t)count
134 itemSize: (
size_t)itemSize
135 allowsSwappableMemory: (
bool)allowsSwappableMemory
136 OF_DESIGNATED_INITIALIZER;
138 - (instancetype)initWithItems: (const
void *)items
139 count: (
size_t)count OF_UNAVAILABLE;
140 - (instancetype)initWithItems: (const
void *)items
142 itemSize: (
size_t)itemSize OF_UNAVAILABLE;
143 - (instancetype)initWithItemsNoCopy: (
void *)items
145 freeWhenDone: (
bool)freeWhenDone OF_UNAVAILABLE;
146 - (instancetype)initWithItemsNoCopy: (
void *)items
148 itemSize: (
size_t)itemSize
149 freeWhenDone: (
bool)freeWhenDone OF_UNAVAILABLE;
151 - (instancetype)initWithContentsOfFile: (
OFString *)path OF_UNAVAILABLE;
153 - (instancetype)initWithContentsOfURL: (
OFURL *)URL OF_UNAVAILABLE;
154 - (instancetype)initWithStringRepresentation: (
OFString *)string OF_UNAVAILABLE;
155 - (instancetype)initWithBase64EncodedString: (
OFString *)string OF_UNAVAILABLE;
156 - (instancetype)initWithSerialization: (
OFXMLElement *)element OF_UNAVAILABLE;
167 - (
void *)mutableItemAtIndex: (
size_t)index OF_RETURNS_INNER_POINTER;
178 - (bool)isEqual: (nullable
id)object;
185 - (
OFString *)stringRepresentation OF_UNAVAILABLE;
186 - (
OFString *)stringByBase64Encoding OF_UNAVAILABLE;
188 - (void)writeToFile: (
OFString *)path OF_UNAVAILABLE;
190 - (void)writeToURL: (
OFURL *)URL OF_UNAVAILABLE;
191 - (
OFXMLElement *)XMLElementBySerializing OF_UNAVAILABLE;
192 - (
OFData *)messagePackRepresentation OF_UNAVAILABLE;
195 OF_ASSUME_NONNULL_END
A class for storing arbitrary data in an array.
Definition: OFData.h:40
A class for storing arbitrary data in secure (non-swappable) memory, securely wiping it when it gets ...
Definition: OFSecureData.h:34
A class for handling strings.
Definition: OFString.h:132
A class for parsing URLs and accessing parts of it.
Definition: OFURL.h:34
A class which stores an XML element.
Definition: OFXMLElement.h:34