Datasnap.DBClient.TClientBlobStream.Write
Delphi
function Write(const Buffer; Count: Longint): Longint; override;
function Write(const ABuffer: TBytes; AOffset, ACount: Longint): Longint; override;
C++
virtual int __fastcall Write(const void *Buffer, int Count)/* overload */;
virtual int __fastcall Write(const System::DynamicArray<System::Byte> ABuffer, int AOffset, int ACount)/* overload */;
inline int __fastcall Write(const System::DynamicArray<System::Byte> Buffer, int Count){ return System::Classes::TStream::Write(Buffer, Count); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.DBClient.pas Datasnap.DBClient.hpp |
Datasnap.DBClient | TClientBlobStream |
Description
Writes Count bytes from Buffer to the current position in the field and updates the current position by Count bytes.
Use Write to write Count bytes to the BLOB field, starting at the current position. The Write method for TClientBlobStream always writes the entire Count bytes, as BLOB data does not necessarily include a termination character. Thus, Write is equivalent to the WriteBuffer method.
All the other data-writing methods of a BLOB stream (WriteBuffer, WriteComponent) call Write to do their actual writing.
Note: Do not call Write when the TClientBlobStream was created in bmRead mode.