ObjFW
 All Classes Functions Variables
List of all members
OFBigDataArray Class Reference

A class for storing arbitrary big data in an array. More...

#import <OFDataArray.h>

Inheritance diagram for OFBigDataArray:
OFDataArray OFObject <OFCopying> <OFComparing> <OFSerialization> <OFObject> <OFObject>

Additional Inherited Members

- Instance Methods inherited from OFDataArray
(id) - initWithItemSize:
 Initializes an already allocated OFDataArray whose items all have the same size.
 
(id) - initWithContentsOfFile:
 Initializes an already allocated OFDataArray with an item size of 1, containing the data of the specified file.
 
(id) - initWithContentsOfURL:
 Initializes an already allocated OFDataArray with an item size of 1, containing the data of the specified URL.
 
(id) - initWithStringRepresentation:
 Initializes an already allocated OFDataArray with an item size of 1, containing the data of the string representation.
 
(id) - initWithBase64EncodedString:
 Initializes an already allocated OFDataArray with an item size of 1, containing the data of the Base64-encoded string.
 
(size_t) - count
 Returns the number of items in the OFDataArray.
 
(size_t) - itemSize
 Returns the size of each item in the OFDataArray in bytes.
 
(void *) - OF_RETURNS_INNER_POINTER
 Returns all elements of the OFDataArray as a C array.
 
(void *) - itemAtIndex:
 Returns a specific item of the OFDataArray.
 
(void *) - OF_RETURNS_INNER_POINTER
 Returns the first item of the OFDataArray.
 
(void *) - OF_RETURNS_INNER_POINTER
 Returns the last item of the OFDataArray.
 
(void) - addItem:
 Adds an item to the OFDataArray.
 
(void) - insertItem:atIndex:
 Adds an item to the OFDataArray at the specified index.
 
(void) - addItemsFromCArray:count:
 Adds items from a C array to the OFDataArray.
 
(void) - insertItemsFromCArray:atIndex:count:
 Adds items from a C array to the OFDataArray at the specified index.
 
(void) - removeItemAtIndex:
 Removes the item at the specified index.
 
(void) - removeItemsInRange:
 Removes the specified amount of items at the specified index.
 
(void) - removeLastItem
 Removes the last item.
 
(void) - removeAllItems
 Removes all items.
 
(OFString *) - stringRepresentation
 Returns the string representation of the data array.
 
(OFString *) - stringByBase64Encoding
 Returns a string containing the data in Base64 encoding.
 
(void) - writeToFile:
 Writes the OFDataArray into the specified file.
 
(OFString *) - MD5Hash
 Returns the MD5 hash of the data array as an autoreleased OFString.
 
(OFString *) - SHA1Hash
 Returns the SHA-1 hash of the data array as an autoreleased OFString.
 
- Class Methods inherited from OFDataArray
(instancetype) + dataArray
 Creates a new OFDataArray with an item size of 1.
 
(instancetype) + dataArrayWithItemSize:
 Creates a new OFDataArray whose items all have the same size.
 
(instancetype) + dataArrayWithContentsOfFile:
 Creates a new OFDataArary with an item size of 1, containing the data of the specified file.
 
(instancetype) + dataArrayWithContentsOfURL:
 Creates a new OFDataArray with an item size of 1, containing the data of the specified URL.
 
(instancetype) + dataArrayWithStringRepresentation:
 Creates a new OFDataArray with an item size of 1, containing the data of the string representation.
 
(instancetype) + dataArrayWithBase64EncodedString:
 Creates a new OFDataArray with an item size of 1, containing the data of the Base64-encoded string.
 

Detailed Description

A class for storing arbitrary big data in an array.

The OFBigDataArray class is a class for storing arbitrary data in an array and is designed to store large hunks of data. Therefore, it allocates memory in pages rather than a chunk of memory for each item.


The documentation for this class was generated from the following file: