System.Classes.TResourceStream.Write
Delphi
function Write(const Buffer; Count: Longint): Longint; override; final;
C++
virtual int __fastcall Write(const void *Buffer, int Count)/* overload */ _FINAL_ATTRIBUTE;
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 | TResourceStream |
Description
Overrides the inherited method to raise an exception when an attempt is made to write the resource back to the application.
Applications should not use a TResourceStream to write the resources of the running application. Write overrides the inherited method to raise an EStreamError exception when an application tries to write to the application's resources.
As all other data-writing methods of TResourceStream (WriteBuffer, WriteComponent) call Write to do the actual writing, calling any of the data-writing methods of TResourceStream will raise an exception.