TBytesStream
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Stream of bytes
Declaration
Source position: classesh.inc line 1231
Type
TBytesStream = class (TMemoryStream)
private
FBytes : TBytes;
protected
function Realloc(var NewCapacity: PtrInt) : Pointer; Override;
public
constructor Create(const ABytes: TBytes); Virtual; Overload;
Bytes : TBytes;
end
;
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.
Members
| Member | Type | Visibility | Description |
|---|---|---|---|
| Bytes | Property | public | The stream data as an array of bytes. |
| Create | Method | public | Create a new instance of the stream, initializing it with an array of bytes |
| FBytes | Field | private | |
| Realloc | Method | protected |
Inheritance
| Class | Description |
|---|---|
| TBytesStream | Stream of bytes |
See also
| Name | Description |
|---|---|
| Bytes | |
| TBytes | |
| TBytes | |
| TBytes | |
| TMemoryStream | Standard implementation of a stream that stores its data in memory |