Class TStream
Unit
Basics
Declaration
type TStream = class
Description
Base class for streamsStreams can read from and/or write to files (including text ones), memory, etc
Methods
Overview
 | function Read(out Buffer; const Count: Cardinal): Cardinal; virtual; abstract; |
 | function ReadCheck(out Buffer; const Count: Cardinal): Boolean; |
 | function Seek(const NewPos: Cardinal): Boolean; virtual; |
 | procedure SetSize(const Value: Cardinal); virtual; |
 | function Write(const Buffer; const Count: Cardinal): Cardinal; virtual; abstract; |
 | function WriteCheck(const Buffer; const Count: Cardinal): Boolean; |
Description
Reads Count bytes from the stream to Buffer, moves current position forward for number of bytes read and returns this number
Reads Count bytes from the stream to Buffer, moves current position forward for number of bytes read and returns True if success
Changes the current position of the stream (if such changes are supported by particular stream class)
Changes current size of the stream
Writes Count bytes from Buffer to the stream, moves current position forward for the number of bytes written and returns this number
Writes Count bytes from Buffer to the stream, moves current position forward for the number of bytes written and returns True if success
Properties
Overview
Description
Current position within the stream in bytes
Current size of the stream in bytes
|
Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com
|