IccBuf constructors

Constructor (1)


IccBuf (unsigned long length = 0,
       DataAreaType type =
extensible)
length
The initial length of the data area, in bytes. The default length is 0.
type
An enumeration that indicates whether the data area can be dynamically extended. Possible values are extensible or fixed. The default is extensible.

Creates an IccBuf object, allocating its own data area with the given length and with all the bytes within it set to NULL.

Constructor (2)

IccBuf (unsigned long length,
       void* dataArea)

length
The length of the supplied data area, in bytes
dataArea
The address of the first byte of the supplied data area.

Creates an IccBuf object that cannot be extended, adopting the given data area as its own.

See warning about Internal/External ownership of buffers.

Constructor (3)

IccBuf (const char* text,
       DataAreaType type =
extensible)
text
A null-terminated string to be copied into the new IccBuf object.
type
An enumeration that indicates whether the data area can be extended. Possible values are extensible or fixed. The default is extensible.

Creates an IccBuf object, allocating its own data area with the same length as the text string, and copies the string into its data area.

Constructor (4)

IccBuf(const IccBuf& buffer)
buffer
A reference to an IccBuf object that is to be copied into the new object.

The copy constructor--creates a new IccBuf object that is a copy of the given object. The created IccBuf object always has an internal data area.

[[ Contents Previous Page | Next Page Index ]]