EasyTable: Single-File Embedded BDE Replacement
Database for Delphi and C++Builder


TEasyBlobStream.Write
TEasyBlobStream
Top 

Writes Count bytes from Buffer to the current position in the field and updates the current position by Count bytes.

function Write(const Buffer; Count: Longint): Longint; override;

Description
Use Write to write Count bytes to the BLOB field, starting at the current position. The Write method for TEasyBlobStream always writes the entire Count bytes, as BLOB data does not necessarily include a termination character. Thus, Write is equivalent to the WriteBuffer method.

Buffer is the source container for Write and must be of type PChar (or equivalent). Write transfers up to Count bytes from Buffer into the BLOB field, starting in the current position, and then advances the current position by the number of bytes actually transferred. Write returns the number of bytes actually transferred (which may be less than the number requested in Count).

Write checks the Transliterate property of the field, and converts the data from ANSI into the character set of the dataset if Transliterate is True.

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 TEasyBlobStream was created in bmRead mode.



© AidAim Software EasyTable: Easytable Single-file Embedded Database Bde Replacement Delphi C\+\+builde