NSData Class Reference

NSData class operates the information for command line options. More...

#import <nsdata.h>

Inheritance diagram for NSData:

NSObject List of all members.

Public Member Functions

(id) - init
 Generate empty NSData object.
Returns:
Generated object.

(id) - initWithBytesNoCopy:length:
 Initialize NSData instance by given data.
Returns:
The object itself.

(id) - initWithBytes:length:
 Initialize NSData instance by given data.
Returns:
The object itself.

(void) - dealloc
 Release the content of CSV data.
(const void *) - bytes
 Get the content of data.
Returns:
Pointer of the data.

(size_t) - length
 Return the length of content data.

Static Public Member Functions

(id) + data
 Make empty data.
Returns:
Empty NSData object.

(id) + dataWithBytes:length:
 Make given size and content data.
Returns:
NSData object contains copy of input data.

(id) + dataWithBytesNoCopy:length:
 Initialize NSData instance by given data.
Returns:
The object itself.


Protected Attributes

void * memory_object
size_t object_length

Detailed Description

NSData class operates the information for command line options.

Description
NSData class operates the information for command line options.


Member Function Documentation

- (const void *) bytes  
 

Get the content of data.

Returns:
Pointer of the data.

Description
Get the content of data.

+ (id) data  
 

Make empty data.

Returns:
Empty NSData object.

Description
Make empty data.

+ (id) dataWithBytes: (const void *)  bytes
length: (size_t)  length
 
 

Make given size and content data.

Returns:
NSData object contains copy of input data.

Parameters:
bytes Pointer of source data.
length Size of source data.
Description
Make given size and content data.

+ (id) dataWithBytesNoCopy: (void *)  bytes
length: (size_t)  length
 
 

Initialize NSData instance by given data.

Returns:
The object itself.

Parameters:
bytes Source data.
length Size of source data.
Description
Initialize NSData instance by given data. Warning: You have to give memory object which allocated malloc().

- (void) dealloc  
 

Release the content of CSV data.

Description
Release the content of CSV data.

Reimplemented from NSObject.

- (id) init  
 

Generate empty NSData object.

Returns:
Generated object.

Description
Generate empty NSData object.

Reimplemented from NSObject.

- (id) initWithBytes: (const void *)  bytes
length: (size_t)  length
 
 

Initialize NSData instance by given data.

Returns:
The object itself.

Parameters:
bytes Source data.
length Size of source data.
Description
Initialize NSData instance by given data.

- (id) initWithBytesNoCopy: (void *)  bytes
length: (size_t)  length
 
 

Initialize NSData instance by given data.

Returns:
The object itself.

Parameters:
bytes Source data.
length Size of source data.
Description
Initialize NSData instance by given data. Warning: You have to give memory object which allocated malloc().

- (size_t) length  
 

Return the length of content data.

Description
Return the length of content data.


Member Data Documentation

- (void*) memory_object [protected]
 

Pointer of memory object

- (size_t) object_length [protected]
 

Size of memory object


The documentation for this class was generated from the following files:
Generated on Fri Feb 3 00:13:01 2006 for Cacao by  doxygen 1.4.5