| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (16) --> |
| <title>CudaBuffer (OpenJ9 JDK 16)</title> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="description" content="declaration: module: openj9.cuda, package: com.ibm.cuda, class: CudaBuffer"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <meta name="keywords" content="com.ibm.cuda.CudaBuffer class"> |
| <meta name="keywords" content="atOffset()"> |
| <meta name="keywords" content="close()"> |
| <meta name="keywords" content="copyFrom()"> |
| <meta name="keywords" content="copyTo()"> |
| <meta name="keywords" content="fillByte()"> |
| <meta name="keywords" content="fillChar()"> |
| <meta name="keywords" content="fillFloat()"> |
| <meta name="keywords" content="fillInt()"> |
| <meta name="keywords" content="fillShort()"> |
| <meta name="keywords" content="getLength()"> |
| <meta name="keywords" content="slice()"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../script-dir/jquery-3.5.1.min.js"></script> |
| <script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script> |
| </head> |
| <body class="class-declaration-page"> |
| <script type="text/javascript">var evenRowColor = "even-row-color"; |
| var oddRowColor = "odd-row-color"; |
| var tableTab = "table-tab"; |
| var activeTableTab = "active-table-tab"; |
| var pathtoroot = "../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flex-box"> |
| <header role="banner" class="flex-header"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="top-nav" id="navbar.top"> |
| <div class="skip-nav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <div class="about-language"><div style="margin-top: 9px;"><strong>OpenJ9 JDK 16</strong></div></div> |
| <ul id="navbar.top.firstrow" class="nav-list" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="../../../module-summary.html">Module</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="nav-bar-cell1-rev">Class</li> |
| <li><a href="class-use/CudaBuffer.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="sub-nav"> |
| <div> |
| <ul class="sub-nav-list"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="sub-nav-list"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <div class="nav-list-search"><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <span class="skip-nav" id="skip.navbar.top"> |
| <!-- --> |
| </span></nav> |
| </header> |
| <div class="flex-content"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="sub-title"><span class="module-label-in-type">Module</span> <a href="../../../module-summary.html">openj9.cuda</a></div> |
| <div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">com.ibm.cuda</a></div> |
| <h1 title="Class CudaBuffer" class="title">Class CudaBuffer</h1> |
| </div> |
| <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link" target="_blank">java.lang.Object</a> |
| <div class="inheritance">com.ibm.cuda.CudaBuffer</div> |
| </div> |
| <section class="description"> |
| <dl class="notes"> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/AutoCloseable.html" title="class or interface in java.lang" class="external-link" target="_blank">AutoCloseable</a></code></dd> |
| </dl> |
| <hr> |
| <div class="type-signature"><span class="modifiers">public final class </span><span class="element-name type-name-label">CudaBuffer</span> |
| <span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link" target="_blank">Object</a> |
| implements <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/AutoCloseable.html" title="class or interface in java.lang" class="external-link" target="_blank">AutoCloseable</a></span></div> |
| <div class="block">The <code>CudaBuffer</code> class represents a region of memory on a specific |
| device. |
| <p> |
| Data may be transferred between the device and the Java host via the |
| various <code>copyTo</code> or <code>copyFrom</code> methods. A buffer may be filled |
| with a specific pattern through use of one of the <code>fillXxx</code> methods. |
| <p> |
| When no longer required, a buffer must be <code>close</code>d.</div> |
| </section> |
| <section class="summary"> |
| <ul class="summary-list"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <li> |
| <section class="constructor-summary" id="constructor.summary"> |
| <h2>Constructor Summary</h2> |
| <div class="caption"><span>Constructors</span></div> |
| <div class="summary-table two-column-summary"> |
| <div class="table-header col-first">Constructor</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-constructor-name even-row-color"><code><span class="member-name-link"><a href="#%3Cinit%3E(com.ibm.cuda.CudaDevice,long)">CudaBuffer</a></span>​(<a href="CudaDevice.html" title="class in com.ibm.cuda">CudaDevice</a> device, |
| long byteCount)</code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Allocates a new region on the specified <code>device</code> of size <code>byteCount</code> bytes.</div> |
| </div> |
| </div> |
| </section> |
| </li> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li> |
| <section class="method-summary" id="method.summary"> |
| <h2>Method Summary</h2> |
| <div id="method-summary-table"> |
| <div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div> |
| <div id="method-summary-table.tabpanel" role="tabpanel"> |
| <div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Method</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a></code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#atOffset(long)">atOffset</a></span>​(long fromOffset)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Returns a sub-region of this buffer.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#close()">close</a></span>()</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Releases the region of device memory backing this buffer.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(byte%5B%5D)">copyFrom</a></span>​(byte[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(byte%5B%5D,int,int)">copyFrom</a></span>​(byte[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(char%5B%5D)">copyFrom</a></span>​(char[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(char%5B%5D,int,int)">copyFrom</a></span>​(char[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(double%5B%5D)">copyFrom</a></span>​(double[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(double%5B%5D,int,int)">copyFrom</a></span>​(double[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(float%5B%5D)">copyFrom</a></span>​(float[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(float%5B%5D,int,int)">copyFrom</a></span>​(float[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(int%5B%5D)">copyFrom</a></span>​(int[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(int%5B%5D,int,int)">copyFrom</a></span>​(int[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(long%5B%5D)">copyFrom</a></span>​(long[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(long%5B%5D,int,int)">copyFrom</a></span>​(long[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(short%5B%5D)">copyFrom</a></span>​(short[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(short%5B%5D,int,int)">copyFrom</a></span>​(short[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(com.ibm.cuda.CudaBuffer,long,long)">copyFrom</a></span>​(<a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a> source, |
| long fromOffset, |
| long toOffset)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on a device) |
| to this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(java.nio.ByteBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">ByteBuffer</a> source)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(java.nio.CharBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/CharBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">CharBuffer</a> source)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(java.nio.DoubleBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/DoubleBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">DoubleBuffer</a> source)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(java.nio.FloatBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/FloatBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">FloatBuffer</a> source)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(java.nio.IntBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/IntBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">IntBuffer</a> source)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(java.nio.LongBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/LongBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">LongBuffer</a> source)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyFrom(java.nio.ShortBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/ShortBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">ShortBuffer</a> source)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(byte%5B%5D)">copyTo</a></span>​(byte[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(byte%5B%5D,int,int)">copyTo</a></span>​(byte[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(char%5B%5D)">copyTo</a></span>​(char[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(char%5B%5D,int,int)">copyTo</a></span>​(char[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(double%5B%5D)">copyTo</a></span>​(double[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(double%5B%5D,int,int)">copyTo</a></span>​(double[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(float%5B%5D)">copyTo</a></span>​(float[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(float%5B%5D,int,int)">copyTo</a></span>​(float[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(int%5B%5D)">copyTo</a></span>​(int[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(int%5B%5D,int,int)">copyTo</a></span>​(int[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(long%5B%5D)">copyTo</a></span>​(long[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(long%5B%5D,int,int)">copyTo</a></span>​(long[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(short%5B%5D)">copyTo</a></span>​(short[] array)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(short%5B%5D,int,int)">copyTo</a></span>​(short[] array, |
| int fromIndex, |
| int toIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(java.nio.ByteBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">ByteBuffer</a> target)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(java.nio.CharBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/CharBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">CharBuffer</a> target)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(java.nio.DoubleBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/DoubleBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">DoubleBuffer</a> target)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(java.nio.FloatBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/FloatBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">FloatBuffer</a> target)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(java.nio.IntBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/IntBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">IntBuffer</a> target)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(java.nio.LongBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/LongBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">LongBuffer</a> target)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#copyTo(java.nio.ShortBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/ShortBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">ShortBuffer</a> target)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#fillByte(byte,long)">fillByte</a></span>​(byte value, |
| long count)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#fillChar(char,long)">fillChar</a></span>​(char value, |
| long count)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#fillFloat(float,long)">fillFloat</a></span>​(float value, |
| long count)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#fillInt(int,long)">fillInt</a></span>​(int value, |
| long count)</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#fillShort(short,long)">fillShort</a></span>​(short value, |
| long count)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code>long</code></div> |
| <div class="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#getLength()">getLength</a></span>()</code></div> |
| <div class="col-last even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Returns the length in bytes of this buffer.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a></code></div> |
| <div class="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><span class="member-name-link"><a href="#slice(long,long)">slice</a></span>​(long fromOffset, |
| long toOffset)</code></div> |
| <div class="col-last odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"> |
| <div class="block">Returns a sub-region of this buffer.</div> |
| </div> |
| </div> |
| </div> |
| </div> |
| <div class="inherited-list"> |
| <h3 id="methods.inherited.from.class.java.lang.Object">Methods declared in class java.lang.<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link" target="_blank">Object</a></h3> |
| <code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link" target="_blank">clone</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link" target="_blank">equals</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link" target="_blank">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link" target="_blank">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link" target="_blank">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link" target="_blank">notify</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link" target="_blank">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link" target="_blank">toString</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link" target="_blank">wait</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link" target="_blank">wait</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link" target="_blank">wait</a></code></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="details-list"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <li> |
| <section class="constructor-details" id="constructor.detail"> |
| <h2>Constructor Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="<init>(com.ibm.cuda.CudaDevice,long)"> |
| <h3>CudaBuffer</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name">CudaBuffer</span>​<span class="parameters">(<a href="CudaDevice.html" title="class in com.ibm.cuda">CudaDevice</a> device, |
| long byteCount)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Allocates a new region on the specified <code>device</code> of size <code>byteCount</code> bytes.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>device</code> - the device on which the region is to be allocated</dd> |
| <dd><code>byteCount</code> - the allocation size in bytes</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| <!-- ============ METHOD DETAIL ========== --> |
| <li> |
| <section class="method-details" id="method.detail"> |
| <h2>Method Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="atOffset(long)"> |
| <h3>atOffset</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a></span> <span class="element-name">atOffset</span>​<span class="parameters">(long fromOffset)</span></div> |
| <div class="block">Returns a sub-region of this buffer. The new buffer begins at the |
| specified offset and extends to the end of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>fromOffset</code> - the byte offset of the sub-region within this buffer</dd> |
| <dt>Returns:</dt> |
| <dd>the specified sub-region</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the specified offset is negative or larger than the |
| length of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="close()"> |
| <h3>close</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">close</span>() |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Releases the region of device memory backing this buffer. |
| <p> |
| Closing a buffer created via <a href="#atOffset(long)"><code>atOffset(long)</code></a> with a |
| non-zero offset has no effect: the memory is still accessible via |
| the parent buffer which must be closed separately.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/AutoCloseable.html#close()" title="class or interface in java.lang" class="external-link" target="_blank">close</a></code> in interface <code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/AutoCloseable.html" title="class or interface in java.lang" class="external-link" target="_blank">AutoCloseable</a></code></dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(byte[])"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(byte[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device). Equivalent to |
| <pre> |
| copyFrom(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(byte[],int,int)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(byte[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device). Elements are read from <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code> |
| storing them in the same order in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dd><code>fromIndex</code> - the source starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the source ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(java.nio.ByteBuffer)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">ByteBuffer</a> source)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device). Elements are read from <code>source</code> |
| beginning at <code>position()</code> continuing up to, but excluding, |
| <code>limit()</code> storing them in the same order in this buffer. |
| The <code>source</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(char[])"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(char[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device). Equivalent to |
| <pre> |
| copyFrom(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(char[],int,int)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(char[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device). Elements are read from <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code> |
| storing them in the same order in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dd><code>fromIndex</code> - the source starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the source ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(java.nio.CharBuffer)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/CharBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">CharBuffer</a> source)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device). Elements are read from <code>source</code> |
| beginning at <code>position()</code> continuing up to, but excluding, |
| <code>limit()</code> storing them in the same order in this buffer. |
| The <code>source</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(com.ibm.cuda.CudaBuffer,long,long)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(<a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a> source, |
| long fromOffset, |
| long toOffset)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on a device) |
| to this buffer (on the device). Elements are read from <code>source</code> |
| beginning at <code>position()</code> continuing up to, but excluding, |
| <code>limit()</code> storing them in the same order in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dd><code>fromOffset</code> - the source starting offset (inclusive)</dd> |
| <dd><code>toOffset</code> - the source ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if either <code>fromOffset</code> or <code>toOffset</code> is not a legal |
| offset within the source buffer or the number of source bytes |
| is larger than the length of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(double[])"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(double[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device). Equivalent to |
| <pre> |
| copyFrom(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(double[],int,int)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(double[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device). Elements are read from <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code> |
| storing them in the same order in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dd><code>fromIndex</code> - the source starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the source ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(java.nio.DoubleBuffer)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/DoubleBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">DoubleBuffer</a> source)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device). Elements are read from <code>source</code> |
| beginning at <code>position()</code> continuing up to, but excluding, |
| <code>limit()</code> storing them in the same order in this buffer. |
| The <code>source</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(float[])"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(float[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device). Equivalent to |
| <pre> |
| copyFrom(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(float[],int,int)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(float[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device). Elements are read from <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code> |
| storing them in the same order in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dd><code>fromIndex</code> - the source starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the source ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(java.nio.FloatBuffer)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/FloatBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">FloatBuffer</a> source)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device). Elements are read from <code>source</code> |
| beginning at <code>position()</code> continuing up to, but excluding, |
| <code>limit()</code> storing them in the same order in this buffer. |
| The <code>source</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(int[])"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(int[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device). Equivalent to |
| <pre> |
| copyFrom(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(int[],int,int)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(int[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device). Elements are read from <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code> |
| storing them in the same order in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dd><code>fromIndex</code> - the source starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the source ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(java.nio.IntBuffer)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/IntBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">IntBuffer</a> source)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device). Elements are read from <code>source</code> |
| beginning at <code>position()</code> continuing up to, but excluding, |
| <code>limit()</code> storing them in the same order in this buffer. |
| The <code>source</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(long[])"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(long[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device). Equivalent to |
| <pre> |
| copyFrom(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(long[],int,int)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(long[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device). Elements are read from <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code> |
| storing them in the same order in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dd><code>fromIndex</code> - the source starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the source ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(java.nio.LongBuffer)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/LongBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">LongBuffer</a> source)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device). Elements are read from <code>source</code> |
| beginning at <code>position()</code> continuing up to, but excluding, |
| <code>limit()</code> storing them in the same order in this buffer. |
| The <code>source</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(short[])"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(short[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device). Equivalent to |
| <pre> |
| copyFrom(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(short[],int,int)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(short[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device). Elements are read from <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code> |
| storing them in the same order in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the source array</dd> |
| <dd><code>fromIndex</code> - the source starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the source ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyFrom(java.nio.ShortBuffer)"> |
| <h3>copyFrom</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyFrom</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/ShortBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">ShortBuffer</a> source)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device). Elements are read from <code>source</code> |
| beginning at <code>position()</code> continuing up to, but excluding, |
| <code>limit()</code> storing them in the same order in this buffer. |
| The <code>source</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the data |
| are to be copied somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(byte[])"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(byte[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Equivalent to |
| <pre> |
| copyTo(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(byte[],int,int)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(byte[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Elements are read starting at the |
| beginning of this buffer and stored in <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dd><code>fromIndex</code> - the destination starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the destination ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(java.nio.ByteBuffer)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">ByteBuffer</a> target)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host). Elements are read starting at |
| the beginning of this buffer and stored in <code>target</code> beginning |
| at <code>position()</code> continuing up to, but excluding, <code>limit()</code>. |
| The <code>target</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(char[])"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(char[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Equivalent to |
| <pre> |
| copyTo(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(char[],int,int)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(char[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Elements are read starting at the |
| beginning of this buffer and stored in <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dd><code>fromIndex</code> - the destination starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the destination ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(java.nio.CharBuffer)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/CharBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">CharBuffer</a> target)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host). Elements are read starting at |
| the beginning of this buffer and stored in <code>target</code> beginning |
| at <code>position()</code> continuing up to, but excluding, <code>limit()</code>. |
| The <code>target</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(double[])"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(double[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Equivalent to |
| <pre> |
| copyTo(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(double[],int,int)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(double[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Elements are read starting at the |
| beginning of this buffer and stored in <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dd><code>fromIndex</code> - the destination starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the destination ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(java.nio.DoubleBuffer)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/DoubleBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">DoubleBuffer</a> target)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host). Elements are read starting at |
| the beginning of this buffer and stored in <code>target</code> beginning |
| at <code>position()</code> continuing up to, but excluding, <code>limit()</code>. |
| The <code>target</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(float[])"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(float[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Equivalent to |
| <pre> |
| copyTo(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(float[],int,int)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(float[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Elements are read starting at the |
| beginning of this buffer and stored in <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dd><code>fromIndex</code> - the destination starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the destination ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(java.nio.FloatBuffer)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/FloatBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">FloatBuffer</a> target)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host). Elements are read starting at |
| the beginning of this buffer and stored in <code>target</code> beginning |
| at <code>position()</code> continuing up to, but excluding, <code>limit()</code>. |
| The <code>target</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(int[])"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(int[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Equivalent to |
| <pre> |
| copyTo(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(int[],int,int)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(int[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Elements are read starting at the |
| beginning of this buffer and stored in <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dd><code>fromIndex</code> - the destination starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the destination ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(java.nio.IntBuffer)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/IntBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">IntBuffer</a> target)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host). Elements are read starting at |
| the beginning of this buffer and stored in <code>target</code> beginning |
| at <code>position()</code> continuing up to, but excluding, <code>limit()</code>. |
| The <code>target</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(long[])"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(long[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Equivalent to |
| <pre> |
| copyTo(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(long[],int,int)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(long[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Elements are read starting at the |
| beginning of this buffer and stored in <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dd><code>fromIndex</code> - the destination starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the destination ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(java.nio.LongBuffer)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/LongBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">LongBuffer</a> target)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host). Elements are read starting at |
| the beginning of this buffer and stored in <code>target</code> beginning |
| at <code>position()</code> continuing up to, but excluding, <code>limit()</code>. |
| The <code>target</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(short[])"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(short[] array)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Equivalent to |
| <pre> |
| copyTo(array, 0, array.length); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(short[],int,int)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(short[] array, |
| int fromIndex, |
| int toIndex)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host). Elements are read starting at the |
| beginning of this buffer and stored in <code>array</code> beginning |
| at <code>fromIndex</code> continuing up to, but excluding, <code>toIndex</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dd><code>fromIndex</code> - the destination starting offset (inclusive)</dd> |
| <dd><code>toIndex</code> - the destination ending offset (exclusive)</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromIndex</code> is negative, <code>toIndex > array.length</code>, |
| or the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="copyTo(java.nio.ShortBuffer)"> |
| <h3>copyTo</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">copyTo</span>​<span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/ShortBuffer.html" title="class or interface in java.nio" class="external-link" target="_blank">ShortBuffer</a> target)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host). Elements are read starting at |
| the beginning of this buffer and stored in <code>target</code> beginning |
| at <code>position()</code> continuing up to, but excluding, <code>limit()</code>. |
| The <code>target</code> buffer position is set to <code>limit()</code>. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the source |
| data are not located at the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="fillByte(byte,long)"> |
| <h3>fillByte</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">fillByte</span>​<span class="parameters">(byte value, |
| long count)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the values |
| are to be stored somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="fillChar(char,long)"> |
| <h3>fillChar</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">fillChar</span>​<span class="parameters">(char value, |
| long count)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the values |
| are to be stored somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="fillFloat(float,long)"> |
| <h3>fillFloat</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">fillFloat</span>​<span class="parameters">(float value, |
| long count)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the values |
| are to be stored somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="fillInt(int,long)"> |
| <h3>fillInt</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">fillInt</span>​<span class="parameters">(int value, |
| long count)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the values |
| are to be stored somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="fillShort(short,long)"> |
| <h3>fillShort</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">fillShort</span>​<span class="parameters">(short value, |
| long count)</span> |
| throws <span class="exceptions"><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></span></div> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer. |
| <p> |
| A sub-buffer may be created (see <a href="#atOffset(long)"><code>atOffset(long)</code></a>) when the values |
| are to be stored somewhere other than the beginning of this buffer.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getLength()"> |
| <h3>getLength</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">long</span> <span class="element-name">getLength</span>()</div> |
| <div class="block">Returns the length in bytes of this buffer.</div> |
| <dl class="notes"> |
| <dt>Returns:</dt> |
| <dd>the length in bytes of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="slice(long,long)"> |
| <h3>slice</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a></span> <span class="element-name">slice</span>​<span class="parameters">(long fromOffset, |
| long toOffset)</span></div> |
| <div class="block">Returns a sub-region of this buffer. The new buffer begins at the |
| specified fromOffset and extends to the specified toOffset (exclusive).</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>fromOffset</code> - the byte offset of the start of the sub-region within this buffer</dd> |
| <dd><code>toOffset</code> - the byte offset of the end of the sub-region within this buffer</dd> |
| <dt>Returns:</dt> |
| <dd>the specified sub-region</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalArgumentException</a></code> - if <code>fromOffset > toOffset</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link" target="_blank">IllegalStateException</a></code> - if this buffer has been closed (see <a href="#close()"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link" target="_blank">IndexOutOfBoundsException</a></code> - if <code>fromOffset</code> is negative, <code>toOffset > length</code>, |
| or the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <hr> |
| <p class="legal-copy"><small><a href="https://www.eclipse.org/openj9/" target="_blank">Eclipse OpenJ9 website.</a><br> To raise a bug report or suggest an improvement create an <a href="https://github.com/eclipse-openj9/openj9/issues" target="_blank">Eclipse Openj9 issue.</a><br> Copyright © 1998, 2021, IBM Corp. and others.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |