| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>CudaBuffer (OpenJ9 JDK 11)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <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="../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../jquery/jquery-3.5.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="CudaBuffer (OpenJ9 JDK 11)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" 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="navBarCell1Rev">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 class="aboutLanguage"><div style="margin-top: 9px;"><strong>OpenJ9 JDK 11</strong></div></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <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="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="moduleLabelInType">Module</span> <a href="../../../module-summary.html">openj9.cuda</a></div> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">com.ibm.cuda</a></div> |
| <h2 title="Class CudaBuffer" class="title">Class CudaBuffer</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>com.ibm.cuda.CudaBuffer</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">AutoCloseable</a></code></dd> |
| </dl> |
| <hr> |
| <pre>public final class <span class="typeNameLabel">CudaBuffer</span> |
| extends <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">Object</a> |
| implements <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">AutoCloseable</a></pre> |
| <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> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><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></th> |
| <td class="colLast"> |
| <div class="block">Allocates a new region on the specified <code>device</code> of size <code>byteCount</code> bytes.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#atOffset(long)">atOffset</a></span>​(long fromOffset)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a sub-region of this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#close()">close</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Releases the region of device memory backing this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(byte%5B%5D)">copyFrom</a></span>​(byte[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(byte%5B%5D,int,int)">copyFrom</a></span>​(byte[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(char%5B%5D)">copyFrom</a></span>​(char[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(char%5B%5D,int,int)">copyFrom</a></span>​(char[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(double%5B%5D)">copyFrom</a></span>​(double[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(double%5B%5D,int,int)">copyFrom</a></span>​(double[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(float%5B%5D)">copyFrom</a></span>​(float[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(float%5B%5D,int,int)">copyFrom</a></span>​(float[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(int%5B%5D)">copyFrom</a></span>​(int[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(int%5B%5D,int,int)">copyFrom</a></span>​(int[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(long%5B%5D)">copyFrom</a></span>​(long[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(long%5B%5D,int,int)">copyFrom</a></span>​(long[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(short%5B%5D)">copyFrom</a></span>​(short[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies all data from the specified <code>array</code> (on the Java host) to |
| this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(short%5B%5D,int,int)">copyFrom</a></span>​(short[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>array</code> (on the Java host) to this |
| buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><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></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on a device) |
| to this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(java.nio.ByteBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">ByteBuffer</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(java.nio.CharBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/CharBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">CharBuffer</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(java.nio.DoubleBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/DoubleBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">DoubleBuffer</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(java.nio.FloatBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/FloatBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">FloatBuffer</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(java.nio.IntBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/IntBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">IntBuffer</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(java.nio.LongBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/LongBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">LongBuffer</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyFrom(java.nio.ShortBuffer)">copyFrom</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ShortBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">ShortBuffer</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from the specified <code>source</code> buffer (on the Java host) |
| to this buffer (on the device).</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(byte%5B%5D)">copyTo</a></span>​(byte[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(byte%5B%5D,int,int)">copyTo</a></span>​(byte[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(char%5B%5D)">copyTo</a></span>​(char[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(char%5B%5D,int,int)">copyTo</a></span>​(char[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(double%5B%5D)">copyTo</a></span>​(double[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(double%5B%5D,int,int)">copyTo</a></span>​(double[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(float%5B%5D)">copyTo</a></span>​(float[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(float%5B%5D,int,int)">copyTo</a></span>​(float[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(int%5B%5D)">copyTo</a></span>​(int[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(int%5B%5D,int,int)">copyTo</a></span>​(int[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(long%5B%5D)">copyTo</a></span>​(long[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(long%5B%5D,int,int)">copyTo</a></span>​(long[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i36" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(short%5B%5D)">copyTo</a></span>​(short[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i37" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(short%5B%5D,int,int)">copyTo</a></span>​(short[] array, |
| int fromIndex, |
| int toIndex)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>array</code> (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i38" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(java.nio.ByteBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">ByteBuffer</a> target)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i39" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(java.nio.CharBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/CharBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">CharBuffer</a> target)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i40" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(java.nio.DoubleBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/DoubleBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">DoubleBuffer</a> target)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i41" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(java.nio.FloatBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/FloatBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">FloatBuffer</a> target)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i42" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(java.nio.IntBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/IntBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">IntBuffer</a> target)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i43" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(java.nio.LongBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/LongBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">LongBuffer</a> target)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i44" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyTo(java.nio.ShortBuffer)">copyTo</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ShortBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">ShortBuffer</a> target)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies data from this buffer (on the device) to the specified |
| <code>target</code> buffer (on the Java host).</div> |
| </td> |
| </tr> |
| <tr id="i45" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fillByte(byte,long)">fillByte</a></span>​(byte value, |
| long count)</code></th> |
| <td class="colLast"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i46" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fillChar(char,long)">fillChar</a></span>​(char value, |
| long count)</code></th> |
| <td class="colLast"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i47" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fillFloat(float,long)">fillFloat</a></span>​(float value, |
| long count)</code></th> |
| <td class="colLast"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i48" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fillInt(int,long)">fillInt</a></span>​(int value, |
| long count)</code></th> |
| <td class="colLast"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i49" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fillShort(short,long)">fillShort</a></span>​(short value, |
| long count)</code></th> |
| <td class="colLast"> |
| <div class="block">Stores <code>count</code> copies of <code>value</code> in this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i50" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLength()">getLength</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the length in bytes of this buffer.</div> |
| </td> |
| </tr> |
| <tr id="i51" class="rowColor"> |
| <td class="colFirst"><code><a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#slice(long,long)">slice</a></span>​(long fromOffset, |
| long toOffset)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a sub-region of this buffer.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods declared in class java.lang.<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">Object</a></h3> |
| <code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink" target="_blank">clone</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink" target="_blank">equals</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink" target="_blank">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink" target="_blank">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink" target="_blank">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink" target="_blank">notify</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink" target="_blank">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink" target="_blank">toString</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink" target="_blank">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink" target="_blank">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink" target="_blank">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>(com.ibm.cuda.CudaDevice,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>CudaBuffer</h4> |
| <pre>public CudaBuffer​(<a href="CudaDevice.html" title="class in com.ibm.cuda">CudaDevice</a> device, |
| long byteCount) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <div class="block">Allocates a new region on the specified <code>device</code> of size <code>byteCount</code> bytes.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="atOffset(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>atOffset</h4> |
| <pre class="methodSignature">public <a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a> atOffset​(long fromOffset)</pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>fromOffset</code> - the byte offset of the sub-region within this buffer</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the specified sub-region</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the specified offset is negative or larger than the |
| length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="close()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>close</h4> |
| <pre class="methodSignature">public void close() |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/AutoCloseable.html?is-external=true#close()" title="class or interface in java.lang" class="externalLink" target="_blank">close</a></code> in interface <code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">AutoCloseable</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(byte[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(byte[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(byte[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(byte[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyFrom(java.nio.ByteBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">ByteBuffer</a> source) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(char[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(char[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(char[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(char[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyFrom(java.nio.CharBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/CharBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">CharBuffer</a> source) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(com.ibm.cuda.CudaBuffer,long,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(<a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a> source, |
| long fromOffset, |
| long toOffset) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyFrom(double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(double[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(double[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(double[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyFrom(java.nio.DoubleBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/DoubleBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">DoubleBuffer</a> source) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(float[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(float[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(float[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(float[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyFrom(java.nio.FloatBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/FloatBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">FloatBuffer</a> source) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(int[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(int[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(int[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyFrom(java.nio.IntBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/IntBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">IntBuffer</a> source) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(long[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(long[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(long[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(long[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyFrom(java.nio.LongBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/LongBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">LongBuffer</a> source) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(short[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(short[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the source array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyFrom(short[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(short[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyFrom(java.nio.ShortBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre class="methodSignature">public void copyFrom​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ShortBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">ShortBuffer</a> source) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(byte[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(byte[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(byte[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(byte[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyTo(java.nio.ByteBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">ByteBuffer</a> target) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(char[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(char[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(char[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(char[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyTo(java.nio.CharBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/CharBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">CharBuffer</a> target) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(double[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(double[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(double[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyTo(java.nio.DoubleBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/DoubleBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">DoubleBuffer</a> target) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(float[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(float[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(float[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(float[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyTo(java.nio.FloatBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/FloatBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">FloatBuffer</a> target) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(int[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(int[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(int[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyTo(java.nio.IntBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/IntBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">IntBuffer</a> target) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(long[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(long[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(long[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(long[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyTo(java.nio.LongBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/LongBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">LongBuffer</a> target) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(short[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(short[] array) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="copyTo(short[],int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(short[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| <a id="copyTo(java.nio.ShortBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre class="methodSignature">public void copyTo​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ShortBuffer.html?is-external=true" title="class or interface in java.nio" class="externalLink" target="_blank">ShortBuffer</a> target) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>target</code> - the destination buffer</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="fillByte(byte,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillByte</h4> |
| <pre class="methodSignature">public void fillByte​(byte value, |
| long count) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="fillChar(char,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillChar</h4> |
| <pre class="methodSignature">public void fillChar​(char value, |
| long count) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="fillFloat(float,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillFloat</h4> |
| <pre class="methodSignature">public void fillFloat​(float value, |
| long count) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="fillInt(int,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillInt</h4> |
| <pre class="methodSignature">public void fillInt​(int value, |
| long count) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="fillShort(short,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillShort</h4> |
| <pre class="methodSignature">public void fillShort​(short value, |
| long count) |
| throws <a href="CudaException.html" title="class in com.ibm.cuda">CudaException</a></pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the destination array</dd> |
| <dd><code>count</code> - the destination array</dd> |
| <dt><span class="throwsLabel">Throws:</span></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/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getLength()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLength</h4> |
| <pre class="methodSignature">public long getLength()</pre> |
| <div class="block">Returns the length in bytes of this buffer.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the length in bytes of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="slice(long,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>slice</h4> |
| <pre class="methodSignature">public <a href="CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a> slice​(long fromOffset, |
| long toOffset)</pre> |
| <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> |
| <dt><span class="paramLabel">Parameters:</span></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><span class="returnLabel">Returns:</span></dt> |
| <dd>the specified sub-region</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_blank">IllegalArgumentException</a></code> - if <code>fromOffset > toOffset</code></dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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/11/docs/api/java.base/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang" class="externalLink" 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> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" 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="navBarCell1Rev">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 class="aboutLanguage"><div style="margin-top: 9px;"><strong>OpenJ9 JDK 11</strong></div></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <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="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><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> |
| </body> |
| </html> |