46 - (
id)initWithCapacity:(
size_t)capacity;
61 - (
id)initWithBytes:(const
void *)bytes size:(
size_t)size;
70 + (
NXData *)dataWithCapacity:(
size_t)capacity;
91 + (
NXData *)dataWithBytes:(const
void *)bytes size:(
size_t)size;
107 - (const
void *)
bytes;
144 - (
BOOL)appendBytes:(const
void *)bytes size:(
size_t)size;
size_t capacity()
Returns the capacity of the data in bytes.
size_t _cap
Total allocated capacity in bytes.
size_t size()
Returns the size of the data in bytes.
NXString * base64String()
Returns a Base64 encoded string representation of the data.
NXHashAlgorithm
Hash algorithms supported by NXData.
size_t _size
Current size of valid data in bytes.
MD5 hash algorithm (128-bit output, not cryptographically secure)
Protocol for constant string objects.
void dump()
Prints a hexdump representation of the data to the console.
void * _data
Raw data buffer storing the binary content.
SHA-256 hash algorithm (256-bit output, cryptographically secure)
bool BOOL
A Boolean value.
const void * bytes()
Returns a pointer to the raw data bytes.
A class for managing and manipulating string objects.
NXString * hexString()
Returns a hexadecimal string representation of the data.
The base class for objects in the Foundation framework.
NXData * new()
Return a new empty NXData instance.
struct objc_object * id
A pointer to an instance of a class.
A protocol that defines JSON methods for an Object.
The NXData classNXData represents a structure for storing binary data.