#import <Foundation/Foundation.h>
#import "cdb.h"
Classes | |
struct | CDBData |
CDBData is a simple struct for pointing to a block of memory. More... | |
class | CDBFile |
Abstract base class for CDB files. More... | |
class | CDBReader |
Read-only access to CDB files. More... | |
class | CDBWriter |
Writes out new CDB files. More... | |
class | CDBEnumerator |
Enumerator for key/value pairs in a CDBReader. More... | |
Functions | |
CDBData | CDBFromNSData (NSData *) |
Returns a CDBData pointing to the contents of an NSData. | |
CDBData | CDBFromNSString (NSString *) |
Returns a CDBData pointing to the UTF-8 contents of an NSString. | |
CDBData | CDBFromCString (const char *) |
Returns a CDBData pointing to the bytes of a C string (without the trailing null byte). | |
NSData * | CDBToNSData (CDBData) |
Creates an NSData object containing a copy of the bytes pointed to by a CDBData. | |
NSData * | CDBToNSDataNoCopy (CDBData) |
Creates an NSData object that points directly to the same bytes as a CDBData, without copying them. | |
NSString * | CDBToNSString (CDBData) |
Creates an NSString from the UTF-8 string pointed to by a CDBData. |
CDBData CDBFromCString | ( | const char * | ) |
Returns a CDBData pointing to the bytes of a C string (without the trailing null byte).
CDBData CDBFromNSString | ( | NSString * | ) |
Returns a CDBData pointing to the UTF-8 contents of an NSString.
NSData* CDBToNSData | ( | CDBData | ) |
Creates an NSData object containing a copy of the bytes pointed to by a CDBData.
NSData* CDBToNSDataNoCopy | ( | CDBData | ) |
Creates an NSData object that points directly to the same bytes as a CDBData, without copying them.
NSString* CDBToNSString | ( | CDBData | ) |
Creates an NSString from the UTF-8 string pointed to by a CDBData.