Datasnap.DBClient.TClientBlobStream.Write

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Write(const Buffer; Count: Longint): Longint; override;
function Write(const ABuffer: TBytes; AOffset, ACount: Longint): Longint; override;

C++

virtual System::LongInt __fastcall Write(const void *Buffer, System::LongInt Count)/* overload */;
virtual System::LongInt __fastcall Write(const System::Sysutils::TBytes ABuffer, System::LongInt AOffset, System::LongInt ACount)/* overload */;
inline System::LongInt __fastcall  Write(const System::Sysutils::TBytes Buffer, System::LongInt 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.

See Also