System.Classes.TPointerStream.Write
Delphi
function Write(const Buffer; Count: LongInt): LongInt; override;
C++
virtual int __fastcall Write(const void *Buffer, int Count)/* overload */;
inline int __fastcall Write(const System::DynamicArray<System::Byte> Buffer, int Offset, int Count){ return TStream::Write(Buffer, Offset, Count); }
inline int __fastcall Write(const System::DynamicArray<System::Byte> Buffer, int Count){ return TStream::Write(Buffer, Count); }
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TPointerStream |
Description
Methods responsible for writing up to Count bytes from Buffer to the stream.
System.Classes.TPointerStream.Write inherits from System.Classes.TStream.Write. All content below this line refers to System.Classes.TStream.Write.
Methods responsible for writing up to Count bytes from Buffer to the stream.
Write attempts to write up to Count bytes from the Buffer to the current position in the stream, and returns the number of bytes written.
After writing to the stream, Write advances the current position by the number of bytes written.
Offset specifies a zero-based position in Buffer of the first byte to write.
All other data-writing methods of a stream (WriteBuffer, WriteData) call Write to do their actual writing.
Each descendent stream object defines a Write method that writes data to its particular storage medium (such as memory or a disk file).