BytesStream¶
Qualified name: delphivcl.BytesStream
- class BytesStream¶
Bases:
MemoryStream
TBytesStream is a stream that stores its data in bytes. Use TBytesStream to store data as bytes in a memory buffer. Memory streams are useful as intermediary objects that can hold information as well as read it from or write it to another storage medium. They provide a useful format for comparing the contents of streams, or for manipulating data that is stored in a less accessible medium.
Methods
Read content as bytes.
Read content as float.
Read content as integer.
Read content as string.
Write content as bytes.
Write content as float.
Write content as integer.
Write content as string.
Attributes
Specifies the stored data.
Capabilities
StreamCapabilities:
Returns the TObject.ClassName
Memory
Provides direct access to the memory pool allocated for the memory stream.
Position
Indicates the current offset into the stream for reading and writing.
Size
Indicates the size in bytes of the stream.
- Bytes¶
Specifies the stored data. The Bytes property returns the buffer in which the data is stored. Use the Size property to find the actual amount of data in the buffer.
- Type:
tuple
- ClassName¶
Returns the TObject.ClassName
- ReadBytes()¶
Read content as bytes.
- ReadFloat()¶
Read content as float.
- ReadInt()¶
Read content as integer.
- ReadString()¶
Read content as string.
- WriteBytes()¶
Write content as bytes.
- WriteFloat()¶
Write content as float.
- WriteInt()¶
Write content as integer.
- WriteString()¶
Write content as string.