Product Documentation

VCL/CLX Developers Guide

Previous Topic

Next Topic

Methods

Create

constructor Create();

The constructor for the TCtBlobStream component.

Destroy

destructor Destroy();

The destructor for the TCtBlobStream component. Do not call Destroy directly. The object has to be destroyed with the inherited (TObject) Free() method.

Read

procedure Read(var Buffer; Count : Longint) : Longint;

This is an abstract method responsible for reading from the stream. It is useful when the number of bytes to read from the stream is not necessarily fixed. It attempts to read up to Count bytes into buffer and returns the number of bytes actually read.

Seek

procedure Seek(Offset : Longint; Origin : Word) : Longint;

Move to a specified position in the streamed resource.

Write

procedure Write(const Buffer; Count : Longint) : Longint;

This is a virtual method for writing to the stream. Write attempts to write up to Count bytes to Buffer, and returns the number of bytes actually written.

TOCIndex