Protocol DDataReadable

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

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

Method Index

- (int) error
Return the last error
Returns:
the error code (or 0)
- (BOOL) isEof
Is the end of the readable reached ?
Returns:
is it?
- (unsigned char) readByte
Read a byte
Returns:
the byte read (or 0)
- (char) readChar
Read a character
Returns:
the character read (or EOS)
- (DData *) readData :(unsigned long) length
Read a data string
Parameters:
length - the length of the data
Returns:
the (new) data string
- (double) readDouble
Read double
Returns:
the double read (or 0.0)
- (long) readLong
Read a long
Returns:
the long read (or 0)
- (short) readShort
Read a short
Returns:
the short read (or 0)
- (BOOL) seek :(unsigned long) offset :(int) origin
Move the current position in the readable
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 readable
Returns:
the current position

generated 25-Jul-2006 by ObjcDoc 3.0.0