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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Bytes Class<br />

Bytes Class<br />

Methods of the Bytes class enable you to perform specific tasks related to Bytes<br />

objects.<br />

To create a Bytes object, use the syntax:<br />

Bytes(Environment *env = NULL);<br />

To create a Bytes object that contains a subarray of bytes from a character array,<br />

use the syntax:<br />

Bytes(unsigned char *value,<br />

unsigned int count,<br />

unsigned int offset = 0,<br />

Environment *env = NULL);<br />

To create a copy of a Bytes object, use the syntax:<br />

Bytes(const Bytes &e);<br />

Summary of Bytes Methods<br />

byteAt()<br />

Table 8–4 Bytes Methods<br />

Method Summary<br />

byteAt() on page 8-23 Return the byte at the specified position of the Bytes<br />

object.<br />

getBytes() on page 8-24 Return a byte array from the Bytes object.<br />

isNull() on page 8-24 Test whether the Bytes object is null.<br />

length() on page 8-25 Return the number of bytes in the Bytes object.<br />

setNull() on page 8-25 Set the Bytes object to null.<br />

This method returns the byte at the specified position in the Bytes object.<br />

Syntax<br />

unsigned char byteAt(unsigned int index) const;<br />

OCCI Classes and Methods 8-23

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

Saved successfully!

Ooh no, something went wrong!