10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Clob Class<br />

write()<br />

Valid values are:<br />

Numbers less than or equal to the current length of the CLOB.<br />

This method writes data from a buffer into a CLOB. This method implicitly opens<br />

the CLOB, copies the buffer into the CLOB, and implicitly closes the CLOB. If the<br />

CLOB is already open, use writeChunk() instead. The actual number of characters<br />

written is returned. The client’s character set id and form will be used by default,<br />

unless they are explicitly set through setCharSetId() and setCharSetForm() calls.<br />

Syntax<br />

unsigned int write(unsigned int amt,<br />

unsigned char *buffer,<br />

unsigned int bufsize,<br />

unsigned int offset = 1);<br />

Parameters<br />

amt<br />

The number of consecutive characters to be written to the CLOB.<br />

buffer<br />

The buffer containing the data to be written to the CLOB.<br />

bufsize<br />

The size of the buffer containing the data to be written to the CLOB.<br />

Valid values are:<br />

Numbers greater than or equal to amt.<br />

offset<br />

The position at which to begin writing data into the CLOB. If offset is not<br />

specified, the data is written from the beginning of the CLOB.<br />

Valid values are:<br />

Numbers greater than or equal to 1.<br />

8-36 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!