Skip to content

TMemoryStream

Stream which keeps data in memory.

Declaration

Source position: objects.pp line 415

type

  TMemoryStream = object(TStream)
    BlkCount: LongInt;
    BlkSize: Word;
    MemSize: LongInt;
    BlkList: PPointerArray = ^TPointerArray;
    constructor Init;
    destructor Done;
    procedure Truncate;
    procedure Read;
    procedure Write;
  end;

Description

The TMemoryStream object implements a stream that stores it's data in memory. The data is stored on the heap, with the possibility to specify the maximum amount of data, and the size of the memory blocks being used.

Methods

Member Visibility Description
Done default Clean up memory and destroy the object instance.
Init default Initialize memory stream, reserves memory for stream data.
Read default Read data from the stream to a location in memory.
Truncate default Set the stream size to the current position.
Write default Write data to the stream.
See all Methods

Fieldss

Member Visibility Description
BlkCount default Number of allocated memory blocks.
BlkList default Pointer to list of allocated blocks.
BlkSize default Size of one memory block.
MemSize default Total memory size.
See all Fieldss

See also

Name Description
TStream Base stream class.