Go to the source code of this file.
Functions | |
NSByteHolder * | newNSByteHolder (void) |
Creates a new NSByteHolder to dynamical store an arbitrary number of bytes. | |
void | addCharacter (struct NSByteHolder *nsb, char c) |
Adds a single character to a struct NSByteHolder. | |
void | addBlock (struct NSByteHolder *nsb, char *buf, int len) |
Adds a block of bytes to a struct NSByteHolder. | |
int | getSize (struct NSByteHolder *nsb) |
Returns the number of bytes added to this struct NSByteHolder. | |
const char * | getData (struct NSByteHolder *nsb) |
Returns a pointer to a contiguous block of data held by nsb. | |
void | freeNSByteHolder (struct NSByteHolder *nsb) |
Frees the resources associated with a struct NSByteHolder. |
Definition in file nsrealloc.h.
|
Adds a block of bytes to a struct NSByteHolder.
Definition at line 39 of file nsrealloc.c. References addCharacter(), and buf. |
|
Adds a single character to a struct NSByteHolder.
Definition at line 46 of file nsrealloc.c. References NSByteHolder::buf, and NSByteHolder::used. Referenced by addBlock(). |
|
Frees the resources associated with a struct NSByteHolder.
Definition at line 63 of file nsrealloc.c. References NSByteHolder::alloc, NSByteHolder::buf, and NSByteHolder::used. |
|
Returns a pointer to a contiguous block of data held by nsb.
Definition at line 58 of file nsrealloc.c. References NSByteHolder::buf. |
|
Returns the number of bytes added to this struct NSByteHolder.
Definition at line 53 of file nsrealloc.c. References NSByteHolder::used. |
|
Creates a new NSByteHolder to dynamical store an arbitrary number of bytes.
Definition at line 29 of file nsrealloc.c. References STARTINGBUFSIZE. |