Class TBufferedStream
Unit
PasDoc_StreamUtils
Declaration
type TBufferedStream = class(TStream)
Description
Hierarchy
Overview
Methods
 |
procedure SetIsReadOnly(const Value: Boolean); |
 |
procedure SetSize(NewSize: Integer); override; |
 |
procedure SetSize(const NewSize: Int64); override; |
 |
function InternalGetSize: Int64; inline; |
 |
function GetSize: Int64; override; |
 |
procedure Init; virtual; |
 |
function FillBuffer: Boolean; inline; |
 |
constructor Create; overload; |
 |
constructor Create(Stream : TStream; BufferSize : Integer = DEFAULT_BUFSIZE; OwnsStream : Boolean = FALSE); overload; virtual; |
 |
constructor Create(const FileName : String; Mode : Word; BufferSize : Integer = DEFAULT_BUFSIZE); overload; virtual; |
 |
destructor Destroy; override; |
 |
procedure Flush; inline; |
 |
function Read(var Buffer; Count: Integer): Integer; override; |
 |
function Seek(Offset: Integer; Origin: Word): Integer; override; |
 |
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; override; |
 |
function Write(const Buffer; Count: Integer): Integer; override; |
Properties
Description
Methods
 |
procedure SetIsReadOnly(const Value: Boolean); |
See property IsReadOnly below
|
 |
procedure SetSize(NewSize: Integer); override; |
|
 |
procedure SetSize(const NewSize: Int64); override; |
|
 |
function InternalGetSize: Int64; inline; |
|
 |
function GetSize: Int64; override; |
|
 |
procedure Init; virtual; |
|
 |
function FillBuffer: Boolean; inline; |
|
 |
constructor Create; overload; |
|
 |
constructor Create(Stream : TStream; BufferSize : Integer = DEFAULT_BUFSIZE; OwnsStream : Boolean = FALSE); overload; virtual; |
Dummy, don't call!
|
 |
constructor Create(const FileName : String; Mode : Word; BufferSize : Integer = DEFAULT_BUFSIZE); overload; virtual; |
|
 |
destructor Destroy; override; |
|
 |
procedure Flush; inline; |
|
 |
function Read(var Buffer; Count: Integer): Integer; override; |
|
 |
function Seek(Offset: Integer; Origin: Word): Integer; override; |
|
 |
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; override; |
|
 |
function Write(const Buffer; Count: Integer): Integer; override; |
|
Properties
 |
property IsReadOnly: Boolean read FIsReadOnly write SetIsReadOnly; |
Set IsReadOnly if you are sure you will never write to the stream and nobody else will do, this speeds up getter Size and in turn Seeks as well. IsReadOnly is set to TRUE if a constructor with filename is called with a read only mode and a share lock.
|
Generated by PasDoc 0.15.0.
|