Protocol DDataWritable

Adopted by:
DBZipFile, DData, DFile, DGZipFile
Declared in:
DDataWritable.h

Protocol Description

The DDataWritable protocol specifies the interface for writing binairy data to a class implementing this interface.

Last modified:
09-Sep-2003 (DDataWritable.h)

Method Index

- (int) error
Return the error
Returns:
the error code (or 0)
- (BOOL) seek :(unsigned long) offset :(int) origin
Move the current position to a location
Parameters:
offset - the offset from the origin (in bytes)
origin - the origin for the offset (0=begin, 1=current, 2=end)
Returns:
success
- (BOOL) skip :(unsigned long) offset
Skip a number of positions
Parameters:
offset - the number of bytes to skip
Returns:
success
- (unsigned long) tell
Tell the current position in the writeable
Returns:
the current position
- (BOOL) writeByte :(unsigned char) byte
Write a byte
Parameters:
byte - the byte to be written
Returns:
success
- (BOOL) writeChar :(char) ch
Write a character
Parameters:
ch - the character to be written
Returns:
success
- (BOOL) writeData :(const unsigned char *) data :(unsigned long) length
Write a data string
Parameters:
data - the data to be written
length - the length of the data
Returns:
success
- (BOOL) writeDouble :(double) sh
Write a double
Parameters:
sh - the double to be written
Returns:
success
- (BOOL) writeLong :(long) sh
Write a long
Parameters:
sh - the long to be written
Returns:
success
- (BOOL) writeShort :(short) sh
Write a short
Parameters:
sh - the short to be written
Returns:
success

generated 25-Jul-2006 by ObjcDoc 3.0.0