Sign in Join
FPDoc Onlineexperiment

TBytesStream class

In unit Classes

Stream of bytes.

Declaration

pascal
TBytesStream = class(TMemoryStream)

Inheritance

  1. TBytesStream
  2. TMemoryStream
  3. TCustomMemoryStream
  4. TStream
  5. TObject

Descends from it: TRawByteStringStream TStringStream

Description

TBytesStream is a stream that uses an array of byte ( TBytes) to keep the stream data. it overrides the TMemoryStream memory allocation routine to use the array of bytes. The array of bytes is exposed through the Bytes property.

See also

Properties

BytespublicThe stream data as an array of bytes.

Methods

ReallocprotectedSets the new capacity for the memory stream.
CreatepublicCreate a new instance of the stream, initializing it with an array of bytes.

Inherited

From TMemoryStream (7)

Capacity Clear Destroy LoadFromFile LoadFromStream SetSize Write

From TCustomMemoryStream (9)

GetPosition GetSize Memory Read SaveToFile SaveToStream Seek SetPointer SizeBoundsSeek

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr 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.