blob: cd05e09b78006dee9ec7f974fa134d03925c8136 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>activemq-cpp-3.4.0: decaf::nio::ByteBuffer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">activemq-cpp-3.4.0</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
</ul>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
initNavTree('classdecaf_1_1nio_1_1_byte_buffer.html','');
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> </div>
<div class="headertitle">
<h1>decaf::nio::ByteBuffer Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="decaf::nio::ByteBuffer" --><!-- doxytag: inherits="decaf::nio::Buffer,Comparable&lt; ByteBuffer &gt;" -->
<p>This class defines six categories of operations upon byte buffers:
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_byte_buffer_8h_source.html">src/main/decaf/nio/ByteBuffer.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for decaf::nio::ByteBuffer:</div>
<div class="dyncontent">
<div class="center"><img src="classdecaf_1_1nio_1_1_byte_buffer__inherit__graph.png" border="0" usemap="#decaf_1_1nio_1_1_byte_buffer_inherit__map" alt="Inheritance graph"/></div>
<map name="decaf_1_1nio_1_1_byte_buffer_inherit__map" id="decaf_1_1nio_1_1_byte_buffer_inherit__map">
<area shape="rect" id="node7" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html" title="This class defines six categories of operations upon byte buffers:" alt="" coords="61,160,331,189"/><area shape="rect" id="node2" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type." alt="" coords="5,5,147,35"/><area shape="rect" id="node4" href="classdecaf_1_1lang_1_1_comparable.html" title="decaf::lang::Comparable\&lt; ByteBuffer \&gt;" alt="" coords="171,5,464,35"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a428c1ad4f7364ea2ae6b8e9fc8e544eb">~ByteBuffer</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ab0775a27fbf1b127e80f75249a36b092">toString</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ab776f7db5d1f2e22e4dc0997377f89f6">get</a> (std::vector&lt; unsigned char &gt; buffer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Relative bulk get method. <a href="#ab776f7db5d1f2e22e4dc0997377f89f6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a36a8a51f5b194d433cbc510d8a6c4f96">get</a> (unsigned char *buffer, int size, int offset, int length)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Relative bulk get method. <a href="#a36a8a51f5b194d433cbc510d8a6c4f96"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a8abb7f97eea20f14cd289b39265e60a1">put</a> (<a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;src)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This method transfers the bytes remaining in the given source buffer into this buffer. <a href="#a8abb7f97eea20f14cd289b39265e60a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a5feff7dd9d00314f0f742a9a01c2876f">put</a> (const unsigned char *buffer, int size, int offset, int length)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This method transfers bytes into this buffer from the given source array. <a href="#a5feff7dd9d00314f0f742a9a01c2876f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ab3f24f2770ed98b51b0a070c6404df7a">put</a> (std::vector&lt; unsigned char &gt; &amp;buffer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This method transfers the entire content of the given source byte array into this buffer. <a href="#ab3f24f2770ed98b51b0a070c6404df7a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a71a16a78a10394b0c4ad2e50164449f4">isReadOnly</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tells whether or not this buffer is read-only. <a href="#a71a16a78a10394b0c4ad2e50164449f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a58f829960228ba89ce3c9960fee38588">array</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the byte array that backs this buffer. <a href="#a58f829960228ba89ce3c9960fee38588"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ac9c05f1b5e3852933a7fed5df3ed87c6">arrayOffset</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the offset within this buffer's backing array of the first element of the buffer. <a href="#ac9c05f1b5e3852933a7fed5df3ed87c6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a9b0922b991f6c413dc51ed65be44143c">hasArray</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tells whether or not this buffer is backed by an accessible byte array. <a href="#a9b0922b991f6c413dc51ed65be44143c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_char_buffer.html">CharBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a4fc24e890bf3ceb7ec3cf3f69153d89d">asCharBuffer</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a view of this byte buffer as a char buffer. <a href="#a4fc24e890bf3ceb7ec3cf3f69153d89d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_double_buffer.html">DoubleBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#adba2171c8f780731d0f5a23fe5033e1a">asDoubleBuffer</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a view of this byte buffer as a double buffer. <a href="#adba2171c8f780731d0f5a23fe5033e1a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_float_buffer.html">FloatBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a3c020e22e86cc112b5293f845cf198a1">asFloatBuffer</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a view of this byte buffer as a float buffer. <a href="#a3c020e22e86cc112b5293f845cf198a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_int_buffer.html">IntBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#aefd4b8e6f690e848310e32bdb969e655">asIntBuffer</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a view of this byte buffer as a int buffer. <a href="#aefd4b8e6f690e848310e32bdb969e655"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_long_buffer.html">LongBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#aa566e6db4d82627895f4d0f022771c83">asLongBuffer</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a view of this byte buffer as a long buffer. <a href="#aa566e6db4d82627895f4d0f022771c83"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_short_buffer.html">ShortBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ae5e28993426f4fda17a3c45e302de629">asShortBuffer</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a view of this byte buffer as a short buffer. <a href="#ae5e28993426f4fda17a3c45e302de629"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#afe697df87e754e2437e3cb9f538a7b7d">asReadOnlyBuffer</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new, read-only byte buffer that shares this buffer's content. <a href="#afe697df87e754e2437e3cb9f538a7b7d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a175bcc2bed9f5db43df078c4a2f5ab07">compact</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compacts this buffer. <a href="#a175bcc2bed9f5db43df078c4a2f5ab07"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a89f24a679360f0fd97e4b0be4fba6032">duplicate</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new byte buffer that shares this buffer's content. <a href="#a89f24a679360f0fd97e4b0be4fba6032"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a1021a589ff8a5a7b64396fddaf2ee417">get</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Relative get method. <a href="#a1021a589ff8a5a7b64396fddaf2ee417"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a54eb6b93d99aee42723a1a7ee23370ef">get</a> (int index) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Absolute get method. <a href="#a54eb6b93d99aee42723a1a7ee23370ef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a4c8b75dc302195f745e163c25b51d55d">getChar</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the next byte at this buffer's current position, and then increments the position by one. <a href="#a4c8b75dc302195f745e163c25b51d55d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ad6b7b8ee792ee3b84d454ee9457ce416">getChar</a> (int index) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads one byte at the given index and returns it. <a href="#ad6b7b8ee792ee3b84d454ee9457ce416"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#aff2beacb86e0d6ba133903b98b7d7577">getDouble</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the next eight bytes at this buffer's current position, and then increments the position by that amount. <a href="#aff2beacb86e0d6ba133903b98b7d7577"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a294cf335f19de2e22c4b055cfe90f036">getDouble</a> (int index) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads eight bytes at the given index and returns it. <a href="#a294cf335f19de2e22c4b055cfe90f036"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a6551924712e717a1a91363ee1b2bacb1">getFloat</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the next four bytes at this buffer's current position, and then increments the position by that amount. <a href="#a6551924712e717a1a91363ee1b2bacb1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#acf364fa00fd42d432a5380916aa2695c">getFloat</a> (int index) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads four bytes at the given index and returns it. <a href="#acf364fa00fd42d432a5380916aa2695c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ad24de40747a3e7b37a1de873cba78633">getLong</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the next eight bytes at this buffer's current position, and then increments the position by that amount. <a href="#ad24de40747a3e7b37a1de873cba78633"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a876ee8665b7273ebbd9f3afdca9e2318">getLong</a> (int index) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads eight bytes at the given index and returns it. <a href="#a876ee8665b7273ebbd9f3afdca9e2318"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a6c93fd1af57b77476e033366341b387f">getInt</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the next four bytes at this buffer's current position, and then increments the position by that amount. <a href="#a6c93fd1af57b77476e033366341b387f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ab83180c5e7213e6d5ea884a0a639b596">getInt</a> (int index) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads four bytes at the given index and returns it. <a href="#ab83180c5e7213e6d5ea884a0a639b596"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ae4118e4a4d10a9809258361ed72604d2">getShort</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the next two bytes at this buffer's current position, and then increments the position by that amount. <a href="#ae4118e4a4d10a9809258361ed72604d2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#afe70d35ca28a8c61f97fd69e833c85ca">getShort</a> (int index) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads two bytes at the given index and returns it. <a href="#afe70d35ca28a8c61f97fd69e833c85ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a39d985729bc52b8544017750524de848">put</a> (unsigned char value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the given byte into this buffer at the current position, and then increments the position. <a href="#a39d985729bc52b8544017750524de848"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ad37fa6fdd28d285ef95a49638a7a9533">put</a> (int index, unsigned char value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the given byte into this buffer at the given index. <a href="#ad37fa6fdd28d285ef95a49638a7a9533"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#acb01d88222596127e6b04481753cbd93">putChar</a> (char value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes one byte containing the given value, into this buffer at the current position, and then increments the position by one. <a href="#acb01d88222596127e6b04481753cbd93"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a7cfd5a378186f655054b04c5fccc609a">putChar</a> (int index, char value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes one byte containing the given value, into this buffer at the given index. <a href="#a7cfd5a378186f655054b04c5fccc609a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a1af3af332422adb4b5815b4e9b7aa530">putDouble</a> (double value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes eight bytes containing the given value, into this buffer at the current position, and then increments the position by eight. <a href="#a1af3af332422adb4b5815b4e9b7aa530"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a2e5fba824a16167a08a475f23dc209c0">putDouble</a> (int index, double value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes eight bytes containing the given value, into this buffer at the given index. <a href="#a2e5fba824a16167a08a475f23dc209c0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ac1590f34862aabd866511092e97d6c67">putFloat</a> (float value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes four bytes containing the given value, into this buffer at the current position, and then increments the position by eight. <a href="#ac1590f34862aabd866511092e97d6c67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a1479865e4cc56ebd53a8631e01a09cc4">putFloat</a> (int index, float value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes four bytes containing the given value, into this buffer at the given index. <a href="#a1479865e4cc56ebd53a8631e01a09cc4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a2f54211693791fa27712c2ae1f4118b8">putLong</a> (long long value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes eight bytes containing the given value, into this buffer at the current position, and then increments the position by eight. <a href="#a2f54211693791fa27712c2ae1f4118b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a707363f3332e99c50588c115024e74bc">putLong</a> (int index, long long value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes eight bytes containing the given value, into this buffer at the given index. <a href="#a707363f3332e99c50588c115024e74bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a0cdd7b6fe26dd2be2439ece7021e32e0">putInt</a> (int value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes four bytes containing the given value, into this buffer at the current position, and then increments the position by eight. <a href="#a0cdd7b6fe26dd2be2439ece7021e32e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a49586a0d91f0acaeee94686d62b353e7">putInt</a> (int index, int value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes four bytes containing the given value, into this buffer at the given index. <a href="#a49586a0d91f0acaeee94686d62b353e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a75f718c0f2d78861124f20f7096179ca">putShort</a> (short value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes two bytes containing the given value, into this buffer at the current position, and then increments the position by eight. <a href="#a75f718c0f2d78861124f20f7096179ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#affb006663301227c34cca892701eee5b">putShort</a> (int index, short value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes two bytes containing the given value, into this buffer at the given index. <a href="#affb006663301227c34cca892701eee5b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a4cb7a384370045ad2376681d40db4c04">slice</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new byte buffer whose content is a shared subsequence of this buffer's content. <a href="#a4cb7a384370045ad2376681d40db4c04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a2796762bd51a52934d477fa9c9f96989">compareTo</a> (const <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;value) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"> <a href="#a2796762bd51a52934d477fa9c9f96989"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a1259f83508f2ede1bac255a4926eb62d">equals</a> (const <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;value) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"> <a href="#a1259f83508f2ede1bac255a4926eb62d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a88e8e2413593b1d179df66f93bab8fde">operator==</a> (const <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;value) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"> <a href="#a88e8e2413593b1d179df66f93bab8fde"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a90cfa68e8432f6e9bbc283052f7aa095">operator&lt;</a> (const <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;value) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"> <a href="#a90cfa68e8432f6e9bbc283052f7aa095"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ae9863941ab675d2ffa8df38bd79ae3f1">allocate</a> (int capacity)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates a new byte buffer whose position will be zero its limit will be its capacity and its mark is not set. <a href="#ae9863941ab675d2ffa8df38bd79ae3f1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ada4ead524f93be19ba3792a2e9d35512">wrap</a> (unsigned char *array, int size, int offset, int length)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Wraps the passed buffer with a new <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a>. <a href="#ada4ead524f93be19ba3792a2e9d35512"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a9a5dc14f7daffa583fa9344da30867b7">wrap</a> (std::vector&lt; unsigned char &gt; &amp;buffer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Wraps the passed STL Byte Vector in a <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a>. <a href="#a9a5dc14f7daffa583fa9344da30867b7"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a36b36538ff711596c31d4a23b28af4fd">ByteBuffer</a> (int capacity)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a> object that has its backing array allocated internally and is then owned and deleted when this object is deleted. <a href="#a36b36538ff711596c31d4a23b28af4fd"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class defines six categories of operations upon byte buffers: </p>
<p>1. Absolute and relative get and put methods that read and write single bytes; 2. Relative bulk get methods that transfer contiguous sequences of bytes from this buffer into an array; 3. Relative bulk put methods that transfer contiguous sequences of bytes from a byte array or some other byte buffer into this buffer; 4. Absolute and relative get and put methods that read and write values of other primitive types, translating them to and from sequences of bytes in a particular byte order; 5. Methods for creating view buffers, which allow a byte buffer to be viewed as a buffer containing values of some other primitive type; and 6. Methods for compacting, duplicating, and slicing a byte buffer.</p>
<p>Byte buffers can be created either by allocation, which allocates space for the buffer's content, or by wrapping an existing byte array into a buffer.</p>
<p>Access to binary data:</p>
<p>This class defines methods for reading and writing values of all other primitive types, except boolean. Primitive values are translated to (or from) sequences of bytes according to the buffer's current byte order.</p>
<p>For access to heterogeneous binary data, that is, sequences of values of different types, this class defines a family of absolute and relative get and put methods for each type. For 32-bit floating-point values, for example, this class defines:</p>
<p>float <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a6551924712e717a1a91363ee1b2bacb1" title="Reads the next four bytes at this buffer&#39;s current position, and then increments the position by ...">getFloat()</a> float getFloat(int index) void <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ac1590f34862aabd866511092e97d6c67" title="Writes four bytes containing the given value, into this buffer at the current position, and then increments the position by eight.">putFloat(float f)</a> void <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#a1479865e4cc56ebd53a8631e01a09cc4" title="Writes four bytes containing the given value, into this buffer at the given index.">putFloat(int index, float f)</a></p>
<p>Corresponding methods are defined for the types char, short, int, long, and double. The index parameters of the absolute get and put methods are in terms of bytes rather than of the type being read or written.</p>
<p>For access to homogeneous binary data, that is, sequences of values of the same type, this class defines methods that can create views of a given byte buffer. A view buffer is simply another buffer whose content is backed by the byte buffer. Changes to the byte buffer's content will be visible in the view buffer, and vice versa; the two buffers' position, limit, and mark values are independent. The asFloatBuffer method, for example, creates an instance of the <a class="el" href="classdecaf_1_1nio_1_1_float_buffer.html" title="This class defines four categories of operations upon float buffers:">FloatBuffer</a> class that is backed by the byte buffer upon which the method is invoked. Corresponding view-creation methods are defined for the types char, short, int, long, and double.</p>
<p>View buffers have two important advantages over the families of type-specific get and put methods described above:</p>
<p>A view buffer is indexed not in terms of bytes but rather in terms of the type-specific size of its values;</p>
<p>A view buffer provides relative bulk get and put methods that can transfer contiguous sequences of values between a buffer and an array or some other buffer of the same type; and </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a36b36538ff711596c31d4a23b28af4fd"></a><!-- doxytag: member="decaf::nio::ByteBuffer::ByteBuffer" ref="a36b36538ff711596c31d4a23b28af4fd" args="(int capacity)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">decaf::nio::ByteBuffer::ByteBuffer </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>capacity</em></td><td>)</td>
<td><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a> object that has its backing array allocated internally and is then owned and deleted when this object is deleted. </p>
<p>The array is initially created with all elements initialized to zero.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">capacity</td><td>The size of the array, this is the limit we read and write to.</td></tr>
</table>
</dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IllegalArgumentException</td><td>if capacity is negative. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a428c1ad4f7364ea2ae6b8e9fc8e544eb"></a><!-- doxytag: member="decaf::nio::ByteBuffer::~ByteBuffer" ref="a428c1ad4f7364ea2ae6b8e9fc8e544eb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual decaf::nio::ByteBuffer::~ByteBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae9863941ab675d2ffa8df38bd79ae3f1"></a><!-- doxytag: member="decaf::nio::ByteBuffer::allocate" ref="ae9863941ab675d2ffa8df38bd79ae3f1" args="(int capacity)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>* decaf::nio::ByteBuffer::allocate </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>capacity</em></td><td>)</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Allocates a new byte buffer whose position will be zero its limit will be its capacity and its mark is not set. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">capacity</td><td>The internal buffer's capacity.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a newly allocated <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a> which the caller owns.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IllegalArgumentException</td><td>if capacity is negative. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a58f829960228ba89ce3c9960fee38588"></a><!-- doxytag: member="decaf::nio::ByteBuffer::array" ref="a58f829960228ba89ce3c9960fee38588" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual unsigned char* decaf::nio::ByteBuffer::array </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the byte array that backs this buffer. </p>
<p>Modifications to this buffer's content will cause the returned array's content to be modified, and vice versa.</p>
<p>Invoke the hasArray method before invoking this method in order to ensure that this buffer has an accessible backing array.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The array that backs this buffer</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is backed by an array but is read-only </td></tr>
<tr><td class="paramname">UnsupportedOperationException</td><td>if this buffer is not backed by an accessible array </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ab872857f87d1e77d9e54c0a83e6cd8da">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ac9c05f1b5e3852933a7fed5df3ed87c6"></a><!-- doxytag: member="decaf::nio::ByteBuffer::arrayOffset" ref="ac9c05f1b5e3852933a7fed5df3ed87c6" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int decaf::nio::ByteBuffer::arrayOffset </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the offset within this buffer's backing array of the first element of the buffer. </p>
<p>If this buffer is backed by an array then buffer position p corresponds to array index p + <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html#ac9c05f1b5e3852933a7fed5df3ed87c6" title="Returns the offset within this buffer&#39;s backing array of the first element of the buffer...">arrayOffset()</a>.</p>
<p>Invoke the hasArray method before invoking this method in order to ensure that this buffer has an accessible backing array.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The offset within this buffer's array of the first element of the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is backed by an array but is read-only. </td></tr>
<tr><td class="paramname">UnsupportedOperationException</td><td>if this buffer is not backed by an accessible array. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a1d300022180c94d7adc08f61ff177d58">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a4fc24e890bf3ceb7ec3cf3f69153d89d"></a><!-- doxytag: member="decaf::nio::ByteBuffer::asCharBuffer" ref="a4fc24e890bf3ceb7ec3cf3f69153d89d" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_char_buffer.html">CharBuffer</a>* decaf::nio::ByteBuffer::asCharBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a view of this byte buffer as a char buffer. </p>
<p>The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.</p>
<p>The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer, and its mark will be undefined. The new buffer will be read-only if, and only if, this buffer is read-only.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new Char <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>, which the caller then owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ae532f63b02904f8e6c1b9d3c59127615">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="adba2171c8f780731d0f5a23fe5033e1a"></a><!-- doxytag: member="decaf::nio::ByteBuffer::asDoubleBuffer" ref="adba2171c8f780731d0f5a23fe5033e1a" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_double_buffer.html">DoubleBuffer</a>* decaf::nio::ByteBuffer::asDoubleBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a view of this byte buffer as a double buffer. </p>
<p>The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.</p>
<p>The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by eight, and its mark will be undefined. The new buffer will be read-only if, and only if, this buffer is read-only.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new double <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>, which the caller then owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ae19e76b6cb171545a85a9785b14f3bde">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a3c020e22e86cc112b5293f845cf198a1"></a><!-- doxytag: member="decaf::nio::ByteBuffer::asFloatBuffer" ref="a3c020e22e86cc112b5293f845cf198a1" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_float_buffer.html">FloatBuffer</a>* decaf::nio::ByteBuffer::asFloatBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a view of this byte buffer as a float buffer. </p>
<p>The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.</p>
<p>The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by four, and its mark will be undefined. The new buffer will be read-only if, and only if, this buffer is read-only.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new float <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>, which the caller then owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#adcabd9f4d7ea07108381f0fc640eb5d7">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="aefd4b8e6f690e848310e32bdb969e655"></a><!-- doxytag: member="decaf::nio::ByteBuffer::asIntBuffer" ref="aefd4b8e6f690e848310e32bdb969e655" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_int_buffer.html">IntBuffer</a>* decaf::nio::ByteBuffer::asIntBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a view of this byte buffer as a int buffer. </p>
<p>The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.</p>
<p>The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by four, and its mark will be undefined. The new buffer will be read-only if, and only if, this buffer is read-only.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new int <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>, which the caller then owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a5ac9532130690e47118f6fcfd0ef7907">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="aa566e6db4d82627895f4d0f022771c83"></a><!-- doxytag: member="decaf::nio::ByteBuffer::asLongBuffer" ref="aa566e6db4d82627895f4d0f022771c83" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_long_buffer.html">LongBuffer</a>* decaf::nio::ByteBuffer::asLongBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a view of this byte buffer as a long buffer. </p>
<p>The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.</p>
<p>The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by eight, and its mark will be undefined. The new buffer will be read-only if, and only if, this buffer is read-only.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new long <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>, which the caller then owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ae21a5d812ab2955bb489fbe308f2bec3">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="afe697df87e754e2437e3cb9f538a7b7d"></a><!-- doxytag: member="decaf::nio::ByteBuffer::asReadOnlyBuffer" ref="afe697df87e754e2437e3cb9f538a7b7d" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>* decaf::nio::ByteBuffer::asReadOnlyBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a new, read-only byte buffer that shares this buffer's content. </p>
<p>The content of the new buffer will be that of this buffer. Changes to this buffer's content will be visible in the new buffer; the new buffer itself, however, will be read-only and will not allow the shared content to be modified. The two buffers' position, limit, and mark values will be independent.</p>
<p>If this buffer is itself read-only then this method behaves in exactly the same way as the duplicate method.</p>
<p>The new buffer's capacity, limit, position, and mark values will be identical to those of this buffer.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The new, read-only byte buffer which the caller then owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a019e49e85d4c04f31eed42119cfa4c36">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ae5e28993426f4fda17a3c45e302de629"></a><!-- doxytag: member="decaf::nio::ByteBuffer::asShortBuffer" ref="ae5e28993426f4fda17a3c45e302de629" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_short_buffer.html">ShortBuffer</a>* decaf::nio::ByteBuffer::asShortBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a view of this byte buffer as a short buffer. </p>
<p>The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.</p>
<p>The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by two, and its mark will be undefined. The new buffer will be read-only if, and only if, this buffer is read-only.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new short <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>, which the caller then owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#aed21a9c70f2255bd98c5da01a0c6885d">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a175bcc2bed9f5db43df078c4a2f5ab07"></a><!-- doxytag: member="decaf::nio::ByteBuffer::compact" ref="a175bcc2bed9f5db43df078c4a2f5ab07" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::compact </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compacts this buffer. </p>
<p>The bytes between the buffer's current position and its limit, if any, are copied to the beginning of the buffer. That is, the byte at index p = <a class="el" href="classdecaf_1_1nio_1_1_buffer.html#ac3f3a9b58ba3c2986e0c7b3752b52c15">position()</a> is copied to index zero, the byte at index p + 1 is copied to index one, and so forth until the byte at index <a class="el" href="classdecaf_1_1nio_1_1_buffer.html#a7517c02b4d27d040c44f970c307bf5b3">limit()</a> - 1 is copied to index n = <a class="el" href="classdecaf_1_1nio_1_1_buffer.html#a7517c02b4d27d040c44f970c307bf5b3">limit()</a> - 1 - p. The buffer's position is then set to n+1 and its limit is set to its capacity. The mark, if defined, is discarded.</p>
<p>The buffer's position is set to the number of bytes copied, rather than to zero, so that an invocation of this method can be followed immediately by an invocation of another relative put method.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a>.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#afbaee538d7a19c626e53d8bbbd457fe2">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a2796762bd51a52934d477fa9c9f96989"></a><!-- doxytag: member="decaf::nio::ByteBuffer::compareTo" ref="a2796762bd51a52934d477fa9c9f96989" args="(const ByteBuffer &amp;value) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int decaf::nio::ByteBuffer::compareTo </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p></p>
</div>
</div>
<a class="anchor" id="a89f24a679360f0fd97e4b0be4fba6032"></a><!-- doxytag: member="decaf::nio::ByteBuffer::duplicate" ref="a89f24a679360f0fd97e4b0be4fba6032" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>* decaf::nio::ByteBuffer::duplicate </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a new byte buffer that shares this buffer's content. </p>
<p>The content of the new buffer will be that of this buffer. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.</p>
<p>The new buffer's capacity, limit, position, and mark values will be identical to those of this buffer. The new buffer will be read-only if, and only if, this buffer is read-only.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a new Byte <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> which the caller owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#af9d7f25df35236782fe9eaa67a85efdf">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a1259f83508f2ede1bac255a4926eb62d"></a><!-- doxytag: member="decaf::nio::ByteBuffer::equals" ref="a1259f83508f2ede1bac255a4926eb62d" args="(const ByteBuffer &amp;value) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool decaf::nio::ByteBuffer::equals </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p></p>
</div>
</div>
<a class="anchor" id="ab776f7db5d1f2e22e4dc0997377f89f6"></a><!-- doxytag: member="decaf::nio::ByteBuffer::get" ref="ab776f7db5d1f2e22e4dc0997377f89f6" args="(std::vector&lt; unsigned char &gt; buffer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::get </td>
<td>(</td>
<td class="paramtype">std::vector&lt; unsigned char &gt;&#160;</td>
<td class="paramname"><em>buffer</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Relative bulk get method. </p>
<p>This method transfers bytes from this buffer into the given destination vector. An invocation of this method of the form src.get(a) behaves in exactly the same way as the invocation. The vector must be sized to the amount of data that is to be read, that is to say, the caller should call buffer.resize( N ) before calling this get method.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this Byte <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if there are fewer than length bytes remaining in this buffer </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1021a589ff8a5a7b64396fddaf2ee417"></a><!-- doxytag: member="decaf::nio::ByteBuffer::get" ref="a1021a589ff8a5a7b64396fddaf2ee417" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual unsigned char decaf::nio::ByteBuffer::get </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Relative get method. </p>
<p>Reads the byte at this buffer's current position, and then increments the position.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The byte at the buffer's current position.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if the buffer's current position is not smaller than its limit. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ad3d7ce119416783ca914675db93991be">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a54eb6b93d99aee42723a1a7ee23370ef"></a><!-- doxytag: member="decaf::nio::ByteBuffer::get" ref="a54eb6b93d99aee42723a1a7ee23370ef" args="(int index) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual unsigned char decaf::nio::ByteBuffer::get </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Absolute get method. </p>
<p>Reads the byte at the given index.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The index in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> where the byte is to be read.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the byte that is located at the given index.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index is not smaller than the buffer's limit, or index is negative. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a2cbfcd1386e1e219b679fe4ec2414eba">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a36a8a51f5b194d433cbc510d8a6c4f96"></a><!-- doxytag: member="decaf::nio::ByteBuffer::get" ref="a36a8a51f5b194d433cbc510d8a6c4f96" args="(unsigned char *buffer, int size, int offset, int length)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::get </td>
<td>(</td>
<td class="paramtype">unsigned char *&#160;</td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Relative bulk get method. </p>
<p>This method transfers bytes from this buffer into the given destination array. If there are fewer bytes remaining in the buffer than are required to satisfy the request, that is, if length &gt; <a class="el" href="classdecaf_1_1nio_1_1_buffer.html#a21cd75b27abc500af892a4078083c10e" title="Returns the number of elements between the current position and the limit.">remaining()</a>, then no bytes are transferred and a <a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a> is thrown.</p>
<p>Otherwise, this method copies length bytes from this buffer into the given array, starting at the current position of this buffer and at the given offset in the array. The position of this buffer is then incremented by length.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>The pointer to an allocated buffer to fill. </td></tr>
<tr><td class="paramname">size</td><td>The size of the passed in <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>. </td></tr>
<tr><td class="paramname">offset</td><td>The position in the buffer to start filling. </td></tr>
<tr><td class="paramname">length</td><td>The amount of data to put in the passed buffer.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a>.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if the preconditions of size, offset, or length are not met. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if there are fewer than length bytes remaining in this buffer. </td></tr>
<tr><td class="paramname">NullPointerException</td><td>if the passed buffer is null. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a4c8b75dc302195f745e163c25b51d55d"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getChar" ref="a4c8b75dc302195f745e163c25b51d55d" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual char decaf::nio::ByteBuffer::getChar </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads the next byte at this buffer's current position, and then increments the position by one. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next char in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if there are no more bytes remaining in this buffer, meaning we have reached the set limit. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a716e6514c00647d3ba34a54d286e7f19">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ad6b7b8ee792ee3b84d454ee9457ce416"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getChar" ref="ad6b7b8ee792ee3b84d454ee9457ce416" args="(int index) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual char decaf::nio::ByteBuffer::getChar </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads one byte at the given index and returns it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The index in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> where the byte is to be read.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the char at the given index in the buffer</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index is not smaller than the buffer's limit, or index is negative. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a3eeed0099b82fe82ca66cf69614d2ba9">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="aff2beacb86e0d6ba133903b98b7d7577"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getDouble" ref="aff2beacb86e0d6ba133903b98b7d7577" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual double decaf::nio::ByteBuffer::getDouble </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads the next eight bytes at this buffer's current position, and then increments the position by that amount. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next double in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if there are no more bytes remaining in this buffer, meaning we have reached the set limit. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a1f52edcd8a4bc9dd2db604c149e4451c">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a294cf335f19de2e22c4b055cfe90f036"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getDouble" ref="a294cf335f19de2e22c4b055cfe90f036" args="(int index) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual double decaf::nio::ByteBuffer::getDouble </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads eight bytes at the given index and returns it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The index in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> where the bytes are to be read.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the double at the given index in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index is not smaller than the buffer's limit, or index is negative. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#af167abba3f2a52b4b2d6d2ca2692a7fc">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a6551924712e717a1a91363ee1b2bacb1"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getFloat" ref="a6551924712e717a1a91363ee1b2bacb1" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual float decaf::nio::ByteBuffer::getFloat </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads the next four bytes at this buffer's current position, and then increments the position by that amount. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next float in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if there are no more bytes remaining in this buffer, meaning we have reached the set limit. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ac22c51dc10d8e040ee3aca24469cb9e7">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="acf364fa00fd42d432a5380916aa2695c"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getFloat" ref="acf364fa00fd42d432a5380916aa2695c" args="(int index) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual float decaf::nio::ByteBuffer::getFloat </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads four bytes at the given index and returns it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The index in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> where the bytes are to be read.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the float at the given index in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if there are not enough bytes remaining to fill the requested Data Type, or index is negative. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#adbfc001c2239e604f43c0bd37a8ff9bb">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a6c93fd1af57b77476e033366341b387f"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getInt" ref="a6c93fd1af57b77476e033366341b387f" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int decaf::nio::ByteBuffer::getInt </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads the next four bytes at this buffer's current position, and then increments the position by that amount. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next int in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if there are no more bytes remaining in this buffer, meaning we have reached the set limit. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ab7c93abc43c250a610943e987d6d4cec">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ab83180c5e7213e6d5ea884a0a639b596"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getInt" ref="ab83180c5e7213e6d5ea884a0a639b596" args="(int index) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int decaf::nio::ByteBuffer::getInt </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads four bytes at the given index and returns it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The index in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> where the bytes are to be read.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the int at the given index in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if there are not enough bytes remaining to fill the requested Data Type, or index is negative. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a07f6271ed0438e0fed8f74d31839ee10">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ad24de40747a3e7b37a1de873cba78633"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getLong" ref="ad24de40747a3e7b37a1de873cba78633" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual long long decaf::nio::ByteBuffer::getLong </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads the next eight bytes at this buffer's current position, and then increments the position by that amount. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next long long in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if there are no more bytes remaining in this buffer, meaning we have reached the set limit. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a177d0e5939d7ff274efe110669c93a83">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a876ee8665b7273ebbd9f3afdca9e2318"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getLong" ref="a876ee8665b7273ebbd9f3afdca9e2318" args="(int index) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual long long decaf::nio::ByteBuffer::getLong </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads eight bytes at the given index and returns it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The index in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> where the bytes are to be read.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the long long at the given index in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if there are not enough bytes remaining to fill the requested Data Type, or index is negative. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ac6fa5397b4c01cab3ecf066a2d498b2b">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ae4118e4a4d10a9809258361ed72604d2"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getShort" ref="ae4118e4a4d10a9809258361ed72604d2" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual short decaf::nio::ByteBuffer::getShort </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads the next two bytes at this buffer's current position, and then increments the position by that amount. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next short in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_underflow_exception.html">BufferUnderflowException</a></td><td>if there are no more bytes remaining in this buffer, meaning we have reached the set limit. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#aad66bb88a93fe63a04026860ac1fa641">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="afe70d35ca28a8c61f97fd69e833c85ca"></a><!-- doxytag: member="decaf::nio::ByteBuffer::getShort" ref="afe70d35ca28a8c61f97fd69e833c85ca" args="(int index) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual short decaf::nio::ByteBuffer::getShort </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads two bytes at the given index and returns it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The index in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> where the bytes are to be read.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the short at the given index in the buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if there are not enough bytes remaining to fill the requested Data Type, or index is negative. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a7495ef1ffef98ecce4188770179daf6c">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a9b0922b991f6c413dc51ed65be44143c"></a><!-- doxytag: member="decaf::nio::ByteBuffer::hasArray" ref="a9b0922b991f6c413dc51ed65be44143c" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool decaf::nio::ByteBuffer::hasArray </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Tells whether or not this buffer is backed by an accessible byte array. </p>
<p>If this method returns true then the array and arrayOffset methods may safely be invoked. Subclasses should override this method if they do not have a backing array as this class always returns true.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if, and only if, this buffer is backed by an array and is not read-only. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ab88d3d871be65718a26bc10480fa1c00">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a71a16a78a10394b0c4ad2e50164449f4"></a><!-- doxytag: member="decaf::nio::ByteBuffer::isReadOnly" ref="a71a16a78a10394b0c4ad2e50164449f4" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool decaf::nio::ByteBuffer::isReadOnly </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Tells whether or not this buffer is read-only. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if, and only if, this buffer is read-only </dd></dl>
<p>Implements <a class="el" href="classdecaf_1_1nio_1_1_buffer.html#a3cb8f27f48cae4bf41443d0d67b9e972">decaf::nio::Buffer</a>.</p>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a81ed73baffb070f694bcc9cd5496412a">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a90cfa68e8432f6e9bbc283052f7aa095"></a><!-- doxytag: member="decaf::nio::ByteBuffer::operator&lt;" ref="a90cfa68e8432f6e9bbc283052f7aa095" args="(const ByteBuffer &amp;value) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool decaf::nio::ByteBuffer::operator&lt; </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p></p>
</div>
</div>
<a class="anchor" id="a88e8e2413593b1d179df66f93bab8fde"></a><!-- doxytag: member="decaf::nio::ByteBuffer::operator==" ref="a88e8e2413593b1d179df66f93bab8fde" args="(const ByteBuffer &amp;value) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool decaf::nio::ByteBuffer::operator== </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p></p>
</div>
</div>
<a class="anchor" id="a39d985729bc52b8544017750524de848"></a><!-- doxytag: member="decaf::nio::ByteBuffer::put" ref="a39d985729bc52b8544017750524de848" args="(unsigned char value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::put </td>
<td>(</td>
<td class="paramtype">unsigned char&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes the given byte into this buffer at the current position, and then increments the position. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>- the byte value to be written.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if this buffer's current position is not smaller than its limit. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a6eea85981ad91107ceece849466a6e10">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ad37fa6fdd28d285ef95a49638a7a9533"></a><!-- doxytag: member="decaf::nio::ByteBuffer::put" ref="ad37fa6fdd28d285ef95a49638a7a9533" args="(int index, unsigned char value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::put </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes the given byte into this buffer at the given index. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>- position in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> to write the data </td></tr>
<tr><td class="paramname">value</td><td>- the byte to write.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index greater than the buffer's limit minus the size of the type being written, or index is negative. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#aa34cd944bff34ae3968d15471d7b6072">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a8abb7f97eea20f14cd289b39265e60a1"></a><!-- doxytag: member="decaf::nio::ByteBuffer::put" ref="a8abb7f97eea20f14cd289b39265e60a1" args="(ByteBuffer &amp;src)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::put </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td>
<td class="paramname"><em>src</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method transfers the bytes remaining in the given source buffer into this buffer. </p>
<p>If there are more bytes remaining in the source buffer than in this buffer, that is, if src.remaining() &gt; <a class="el" href="classdecaf_1_1nio_1_1_buffer.html#a21cd75b27abc500af892a4078083c10e" title="Returns the number of elements between the current position and the limit.">remaining()</a>, then no bytes are transferred and a <a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a> is thrown.</p>
<p>Otherwise, this method copies n = src.remaining() bytes from the given buffer into this buffer, starting at each buffer's current position. The positions of both buffers are then incremented by n.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">src</td><td>The buffer to take bytes from an place in this one.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there is insufficient space in this buffer for the remaining bytes in the source buffer </td></tr>
<tr><td class="paramname">IllegalArgumentException</td><td>if the source buffer is this buffer </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5feff7dd9d00314f0f742a9a01c2876f"></a><!-- doxytag: member="decaf::nio::ByteBuffer::put" ref="a5feff7dd9d00314f0f742a9a01c2876f" args="(const unsigned char *buffer, int size, int offset, int length)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::put </td>
<td>(</td>
<td class="paramtype">const unsigned char *&#160;</td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method transfers bytes into this buffer from the given source array. </p>
<p>If there are more bytes to be copied from the array than remain in this buffer, that is, if length &gt; <a class="el" href="classdecaf_1_1nio_1_1_buffer.html#a21cd75b27abc500af892a4078083c10e" title="Returns the number of elements between the current position and the limit.">remaining()</a>, then no bytes are transferred and a <a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a> is thrown.</p>
<p>Otherwise, this method copies length bytes from the given array into this buffer, starting at the given offset in the array and at the current position of this buffer. The position of this buffer is then incremented by length.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>The array from which bytes are to be read. </td></tr>
<tr><td class="paramname">size</td><td>The size of the given array. </td></tr>
<tr><td class="paramname">offset</td><td>The offset within the array of the first byte to be read. </td></tr>
<tr><td class="paramname">length</td><td>The number of bytes to be read from the given array.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there is insufficient space in this buffer. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
<tr><td class="paramname">NullPointerException</td><td>if the passed buffer is null. </td></tr>
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if the preconditions of size, offset, or length are not met. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab3f24f2770ed98b51b0a070c6404df7a"></a><!-- doxytag: member="decaf::nio::ByteBuffer::put" ref="ab3f24f2770ed98b51b0a070c6404df7a" args="(std::vector&lt; unsigned char &gt; &amp;buffer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::put </td>
<td>(</td>
<td class="paramtype">std::vector&lt; unsigned char &gt; &amp;&#160;</td>
<td class="paramname"><em>buffer</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method transfers the entire content of the given source byte array into this buffer. </p>
<p>This is the same as calling put( &amp;buffer[0], buffer.size(), 0, buffer.size() )</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>The buffer whose contents are copied to this <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there is insufficient space in this buffer. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="acb01d88222596127e6b04481753cbd93"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putChar" ref="acb01d88222596127e6b04481753cbd93" args="(char value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putChar </td>
<td>(</td>
<td class="paramtype">char&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes one byte containing the given value, into this buffer at the current position, and then increments the position by one. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>The value to be written.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there are fewer than bytes remaining in this buffer than the size of the data to be written </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a940d4fe71592ea67e83d1d754f34e46f">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a7cfd5a378186f655054b04c5fccc609a"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putChar" ref="a7cfd5a378186f655054b04c5fccc609a" args="(int index, char value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putChar </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes one byte containing the given value, into this buffer at the given index. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The position in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> to write the data. </td></tr>
<tr><td class="paramname">value</td><td>The value to write.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index greater than the buffer's limit minus the size of the type being written, or index is negative. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a58d45611f423e101722a99a4a7599faa">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a1af3af332422adb4b5815b4e9b7aa530"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putDouble" ref="a1af3af332422adb4b5815b4e9b7aa530" args="(double value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putDouble </td>
<td>(</td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes eight bytes containing the given value, into this buffer at the current position, and then increments the position by eight. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>The value to be written.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there are fewer than bytes remaining in this buffer than the size of the data to be written </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a5648f055607827df32cfdb8074e957f2">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a2e5fba824a16167a08a475f23dc209c0"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putDouble" ref="a2e5fba824a16167a08a475f23dc209c0" args="(int index, double value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putDouble </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes eight bytes containing the given value, into this buffer at the given index. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The position in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> to write the data </td></tr>
<tr><td class="paramname">value</td><td>The value to write.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index greater than the buffer's limit minus the size of the type being written, or index is negative. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#adf4135569f27184cb922dfff238321c8">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ac1590f34862aabd866511092e97d6c67"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putFloat" ref="ac1590f34862aabd866511092e97d6c67" args="(float value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putFloat </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes four bytes containing the given value, into this buffer at the current position, and then increments the position by eight. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>The value to be written.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there are fewer than bytes remaining in this buffer than the size of the data to be written. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a937d1ae4adcf0d609cd1c591fb4a30ec">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a1479865e4cc56ebd53a8631e01a09cc4"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putFloat" ref="a1479865e4cc56ebd53a8631e01a09cc4" args="(int index, float value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putFloat </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes four bytes containing the given value, into this buffer at the given index. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The position in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> to write the data </td></tr>
<tr><td class="paramname">value</td><td>The value to write.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index greater than the buffer's limit minus the size of the type being written, or index is negative. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a5108c794c9a9fd260ce4600c50630950">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a49586a0d91f0acaeee94686d62b353e7"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putInt" ref="a49586a0d91f0acaeee94686d62b353e7" args="(int index, int value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putInt </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes four bytes containing the given value, into this buffer at the given index. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The position in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> to write the data. </td></tr>
<tr><td class="paramname">value</td><td>The value to write.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index greater than the buffer's limit minus the size of the type being written, or index is negative. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#ab310c1792f41c39f47cb5eabc8fee616">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a0cdd7b6fe26dd2be2439ece7021e32e0"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putInt" ref="a0cdd7b6fe26dd2be2439ece7021e32e0" args="(int value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putInt </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes four bytes containing the given value, into this buffer at the current position, and then increments the position by eight. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>The value to be written.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there are fewer than bytes remaining in this buffer than the size of the data to be written </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a29d457e7218784933a824c7b1e6f04bd">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a2f54211693791fa27712c2ae1f4118b8"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putLong" ref="a2f54211693791fa27712c2ae1f4118b8" args="(long long value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putLong </td>
<td>(</td>
<td class="paramtype">long long&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes eight bytes containing the given value, into this buffer at the current position, and then increments the position by eight. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>The value to be written.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there are fewer than bytes remaining in this buffer than the size of the data to be written. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a01dd135accd07d0f60fa71d1b7de2212">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a707363f3332e99c50588c115024e74bc"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putLong" ref="a707363f3332e99c50588c115024e74bc" args="(int index, long long value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putLong </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long long&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes eight bytes containing the given value, into this buffer at the given index. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The position in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> to write the data. </td></tr>
<tr><td class="paramname">value</td><td>The value to write.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index greater than the buffer's limit minus the size of the type being written, or index is negative. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a2c432f0586df4f41241234ec79cc94a8">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="affb006663301227c34cca892701eee5b"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putShort" ref="affb006663301227c34cca892701eee5b" args="(int index, short value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putShort </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">short&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes two bytes containing the given value, into this buffer at the given index. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>The position in the <a class="el" href="classdecaf_1_1nio_1_1_buffer.html" title="A container for data of a specific primitive type.">Buffer</a> to write the data </td></tr>
<tr><td class="paramname">value</td><td>The value to write.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if index greater than the buffer's limit minus the size of the type being written, or index is negative. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#a8dfa4f8108273882549629e905ebae04">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a75f718c0f2d78861124f20f7096179ca"></a><!-- doxytag: member="decaf::nio::ByteBuffer::putShort" ref="a75f718c0f2d78861124f20f7096179ca" args="(short value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>&amp; decaf::nio::ByteBuffer::putShort </td>
<td>(</td>
<td class="paramtype">short&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Writes two bytes containing the given value, into this buffer at the current position, and then increments the position by eight. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>The value to be written.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this buffer.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_buffer_overflow_exception.html">BufferOverflowException</a></td><td>if there are fewer than bytes remaining in this buffer than the size of the data to be written. </td></tr>
<tr><td class="paramname"><a class="el" href="classdecaf_1_1nio_1_1_read_only_buffer_exception.html">ReadOnlyBufferException</a></td><td>if this buffer is read-only. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#acd90cd9ec81335165a2e7fdcc19d400f">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="a4cb7a384370045ad2376681d40db4c04"></a><!-- doxytag: member="decaf::nio::ByteBuffer::slice" ref="a4cb7a384370045ad2376681d40db4c04" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>* decaf::nio::ByteBuffer::slice </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a new byte buffer whose content is a shared subsequence of this buffer's content. </p>
<p>The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.</p>
<p>The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer, and its mark will be undefined. The new buffer will be read-only if, and only if, this buffer is read-only.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the newly create <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a> which the caller owns. </dd></dl>
<p>Implemented in <a class="el" href="classdecaf_1_1internal_1_1nio_1_1_byte_array_buffer.html#aeeca3e501a41ff17730aaf3e675ba6e5">decaf::internal::nio::ByteArrayBuffer</a>.</p>
</div>
</div>
<a class="anchor" id="ab0775a27fbf1b127e80f75249a36b092"></a><!-- doxytag: member="decaf::nio::ByteBuffer::toString" ref="ab0775a27fbf1b127e80f75249a36b092" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::string decaf::nio::ByteBuffer::toString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>a std::string describing this object </dd></dl>
</div>
</div>
<a class="anchor" id="ada4ead524f93be19ba3792a2e9d35512"></a><!-- doxytag: member="decaf::nio::ByteBuffer::wrap" ref="ada4ead524f93be19ba3792a2e9d35512" args="(unsigned char *array, int size, int offset, int length)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>* decaf::nio::ByteBuffer::wrap </td>
<td>(</td>
<td class="paramtype">unsigned char *&#160;</td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Wraps the passed buffer with a new <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a>. </p>
<p>The new buffer will be backed by the given byte array; that is, modifications to the buffer will cause the array to be modified and vice versa. The new buffer's capacity will be array.length, its position will be offset, its limit will be offset + length, and its mark will be undefined. Its backing array will be the given array, and its array offset will be zero.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">array</td><td>The array that will back the new buffer. </td></tr>
<tr><td class="paramname">size</td><td>The size of the provided array. </td></tr>
<tr><td class="paramname">offset</td><td>The offset of the subarray to be used. </td></tr>
<tr><td class="paramname">length</td><td>The length of the subarray to be used.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a new <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a> that is backed by buffer, caller owns.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">NullPointerException</td><td>if the array passed in is NULL. </td></tr>
<tr><td class="paramname">IndexOutOfBoundsException</td><td>if the preconditions of size, offset, or length are not met. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9a5dc14f7daffa583fa9344da30867b7"></a><!-- doxytag: member="decaf::nio::ByteBuffer::wrap" ref="a9a5dc14f7daffa583fa9344da30867b7" args="(std::vector&lt; unsigned char &gt; &amp;buffer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a>* decaf::nio::ByteBuffer::wrap </td>
<td>(</td>
<td class="paramtype">std::vector&lt; unsigned char &gt; &amp;&#160;</td>
<td class="paramname"><em>buffer</em></td><td>)</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Wraps the passed STL Byte Vector in a <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a>. </p>
<p>The new buffer will be backed by the given byte array; modifications to the buffer will cause the array to be modified and vice versa. The new buffer's capacity and limit will be buffer.size(), its position will be zero, and its mark will be undefined. Its backing array will be the given array, and its array offset will be zero.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>The vector that will back the new buffer, the vector must have been sized to the desired size already by calling vector.resize( N ).</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a new <a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html" title="This class defines six categories of operations upon byte buffers:">ByteBuffer</a> that is backed by buffer, caller owns. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/main/decaf/nio/<a class="el" href="_byte_buffer_8h_source.html">ByteBuffer.h</a></li>
</ul>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacedecaf.html">decaf</a> </li>
<li class="navelem"><a class="el" href="namespacedecaf_1_1nio.html">nio</a> </li>
<li class="navelem"><a class="el" href="classdecaf_1_1nio_1_1_byte_buffer.html">ByteBuffer</a> </li>
<li class="footer">Generated on Mon Apr 25 2011 for activemq-cpp-3.4.0 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
</ul>
</div>
</body>
</html>