DL Logo

CosStream Functions

CosStreamSetData

Header: DLExtrasProcs.h:156

Description

Essentially identical to CosNewStream, except that the result is a modification of an existing stream.

Syntax

void CosStreamSetData(CosObj stream, ASStm sourceP, ASInt32 sourceStart, ASBool encodeTheSourceData, CosObj attributes, CosObj encodeParms, ASInt32 sourceLength);

Parameters

stream
Stream to be modified
sourceP
source stream to be added.
sourceStart
The byte offset to the starting point of the stream to be added.
encodeTheSourceData
Flag indicating whether the source data is to encoded via filters specified in the attributes.
attributes
dictionary containing string data attributes, including its length and encoding parameters.
encodeParms
Parameters to be used for encoding (if any).
sourceLength
length of data to be read from the source, or-1 to read to EOF.