Sign in Join
FPDoc Onlineexperiment

TMemoryStream object

In unit Objects

Stream which keeps data in memory.

Declaration

pascal
TMemoryStream = class(TStream)

Inheritance

  1. TMemoryStream
  2. TStream
  3. TObject

Descends from it: TBytesStream

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.

See also

Methods

InitInitialize memory stream, reserves memory for stream data.
DoneClean up memory and destroy the object instance.
TruncateSet the stream size to the current position.
ReadRead data from the stream to a location in memory.
WriteWrite data to the stream.

Fields

BlkCountNumber of allocated memory blocks.
BlkSizeSize of one memory block.
MemSizeTotal memory size.
BlkListPointer to list of allocated blocks.

Inherited

From TObject (42)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.