Programming Reference Manual
 
Syntax
 
Result = object.Read(Buffer [, Count])
 
Description
Read one or more bytes from the stream. Reading starts at the Position property. Set Position to change the position
 
Part
Description
object
Evaluates to a DartStream object.
Buffer
Uninitialized String or Byte Array. Where data is to be put.
Count
Optional Long. Specifies how much data is to be read.
Result
Returned Long. Indicates how much data was read.
 

Remarks

If the Buffer parameter is omitted, then this method attempts to read all the data from the current position to the end of the stream. The position is advanced Count bytes upon completion.
 

Error Codes

The Clear method may generate the following error codes (refer to the ErrorConstants topic for a complete list of error codes):
  • ptInvalidParam1
  • ptInvalidParam2
  • ptNoBufferSpace 
 
See Also