| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_262-internal) on Thu Jun 04 16:39:35 GMT 2020 --> |
| <title>CudaBuffer (OpenJ9 CUDA Classes)</title> |
| <meta name="date" content="2020-06-04"> |
| <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"> |
| <script type="text/javascript" src="../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="CudaBuffer (OpenJ9 CUDA Classes)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"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"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../com/ibm/cuda/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-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><strong>OpenJ9 CUDA Classes</strong></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../com/ibm/cuda/Cuda.html" title="class in com.ibm.cuda"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../com/ibm/cuda/CudaDevice.html" title="class in com.ibm.cuda"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?com/ibm/cuda/CudaBuffer.html" target="_top">Frames</a></li> |
| <li><a href="CudaBuffer.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></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> |
| </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 name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">com.ibm.cuda</div> |
| <h2 title="Class CudaBuffer" class="title">Class CudaBuffer</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" target="_blank" title="class or interface in java.lang">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><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" target="_blank" title="class or interface in java.lang">AutoCloseable</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public final class <span class="typeNameLabel">CudaBuffer</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" target="_blank" title="class or interface in java.lang">Object</a> |
| implements <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" target="_blank" title="class or interface in java.lang">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 ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#CudaBuffer-com.ibm.cuda.CudaDevice-long-">CudaBuffer</a></span>(<a href="../../../com/ibm/cuda/CudaDevice.html" title="class in com.ibm.cuda">CudaDevice</a> device, |
| long byteCount)</code> |
| <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> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="../../../com/ibm/cuda/CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#atOffset-long-">atOffset</a></span>(long fromOffset)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#close--">close</a></span>()</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-byte:A-">copyFrom</a></span>(byte[] array)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-byte:A-int-int-">copyFrom</a></span>(byte[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-java.nio.ByteBuffer-">copyFrom</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">ByteBuffer</a> source)</code> |
| <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="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-char:A-">copyFrom</a></span>(char[] array)</code> |
| <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="i6" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-char:A-int-int-">copyFrom</a></span>(char[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-java.nio.CharBuffer-">copyFrom</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/CharBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">CharBuffer</a> source)</code> |
| <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="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-com.ibm.cuda.CudaBuffer-long-long-">copyFrom</a></span>(<a href="../../../com/ibm/cuda/CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a> source, |
| long fromOffset, |
| long toOffset)</code> |
| <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="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-double:A-">copyFrom</a></span>(double[] array)</code> |
| <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="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-double:A-int-int-">copyFrom</a></span>(double[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-java.nio.DoubleBuffer-">copyFrom</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/DoubleBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">DoubleBuffer</a> source)</code> |
| <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="i12" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-float:A-">copyFrom</a></span>(float[] array)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-float:A-int-int-">copyFrom</a></span>(float[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-java.nio.FloatBuffer-">copyFrom</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/FloatBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">FloatBuffer</a> source)</code> |
| <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="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-int:A-">copyFrom</a></span>(int[] array)</code> |
| <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="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-int:A-int-int-">copyFrom</a></span>(int[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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="i17" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-java.nio.IntBuffer-">copyFrom</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/IntBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">IntBuffer</a> source)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-long:A-">copyFrom</a></span>(long[] array)</code> |
| <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="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-long:A-int-int-">copyFrom</a></span>(long[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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="i20" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-java.nio.LongBuffer-">copyFrom</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/LongBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">LongBuffer</a> source)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-short:A-">copyFrom</a></span>(short[] array)</code> |
| <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="i22" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-short:A-int-int-">copyFrom</a></span>(short[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyFrom-java.nio.ShortBuffer-">copyFrom</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ShortBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">ShortBuffer</a> source)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-byte:A-">copyTo</a></span>(byte[] array)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-byte:A-int-int-">copyTo</a></span>(byte[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-java.nio.ByteBuffer-">copyTo</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">ByteBuffer</a> target)</code> |
| <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="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-char:A-">copyTo</a></span>(char[] array)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-char:A-int-int-">copyTo</a></span>(char[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-java.nio.CharBuffer-">copyTo</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/CharBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">CharBuffer</a> target)</code> |
| <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="i30" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-double:A-">copyTo</a></span>(double[] array)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-double:A-int-int-">copyTo</a></span>(double[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-java.nio.DoubleBuffer-">copyTo</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/DoubleBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">DoubleBuffer</a> target)</code> |
| <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="i33" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-float:A-">copyTo</a></span>(float[] array)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-float:A-int-int-">copyTo</a></span>(float[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-java.nio.FloatBuffer-">copyTo</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/FloatBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">FloatBuffer</a> target)</code> |
| <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="i36" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-int:A-">copyTo</a></span>(int[] array)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-int:A-int-int-">copyTo</a></span>(int[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-java.nio.IntBuffer-">copyTo</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/IntBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">IntBuffer</a> target)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-long:A-">copyTo</a></span>(long[] array)</code> |
| <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="i40" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-long:A-int-int-">copyTo</a></span>(long[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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="i41" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-java.nio.LongBuffer-">copyTo</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/LongBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">LongBuffer</a> target)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-short:A-">copyTo</a></span>(short[] array)</code> |
| <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="i43" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-short:A-int-int-">copyTo</a></span>(short[] array, |
| int fromIndex, |
| int toIndex)</code> |
| <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="i44" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#copyTo-java.nio.ShortBuffer-">copyTo</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ShortBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">ShortBuffer</a> target)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#fillByte-byte-long-">fillByte</a></span>(byte value, |
| long count)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#fillChar-char-long-">fillChar</a></span>(char value, |
| long count)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#fillFloat-float-long-">fillFloat</a></span>(float value, |
| long count)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#fillInt-int-long-">fillInt</a></span>(int value, |
| long count)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#fillShort-short-long-">fillShort</a></span>(short value, |
| long count)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#getLength--">getLength</a></span>()</code> |
| <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="../../../com/ibm/cuda/CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaBuffer.html#slice-long-long-">slice</a></span>(long fromOffset, |
| long toOffset)</code> |
| <div class="block">Returns a sub-region of this buffer.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" target="_blank" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="CudaBuffer-com.ibm.cuda.CudaDevice-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>CudaBuffer</h4> |
| <pre>public CudaBuffer(<a href="../../../com/ibm/cuda/CudaDevice.html" title="class in com.ibm.cuda">CudaDevice</a> device, |
| long byteCount) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="atOffset-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>atOffset</h4> |
| <pre>public <a href="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the specified offset is negative or larger than the |
| length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="close--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>close</h4> |
| <pre>public void close() |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true#close--" title="class or interface in java.lang">close</a></code> in interface <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" target="_blank" title="class or interface in java.lang">AutoCloseable</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../com/ibm/cuda/CudaException.html" title="class in com.ibm.cuda">CudaException</a></code> - if a CUDA exception occurs</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(byte[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(byte[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyFrom-java.nio.ByteBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">ByteBuffer</a> source) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-char:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(char[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-char:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(char[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyFrom-java.nio.CharBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/CharBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">CharBuffer</a> source) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-com.ibm.cuda.CudaBuffer-long-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(<a href="../../../com/ibm/cuda/CudaBuffer.html" title="class in com.ibm.cuda">CudaBuffer</a> source, |
| long fromOffset, |
| long toOffset) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyFrom-double:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(double[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-double:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(double[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyFrom-java.nio.DoubleBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/DoubleBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">DoubleBuffer</a> source) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-float:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(float[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-float:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(float[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyFrom-java.nio.FloatBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/FloatBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">FloatBuffer</a> source) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-int:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(int[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-int:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(int[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyFrom-java.nio.IntBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/IntBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">IntBuffer</a> source) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-long:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(long[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-long:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(long[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyFrom-java.nio.LongBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/LongBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">LongBuffer</a> source) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-short:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(short[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyFrom-short:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(short[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyFrom-java.nio.ShortBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyFrom</h4> |
| <pre>public void copyFrom(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ShortBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">ShortBuffer</a> source) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(byte[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(byte[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyTo-java.nio.ByteBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">ByteBuffer</a> target) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-char:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(char[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-char:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(char[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyTo-java.nio.CharBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/CharBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">CharBuffer</a> target) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-double:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(double[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-double:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(double[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyTo-java.nio.DoubleBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/DoubleBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">DoubleBuffer</a> target) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-float:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(float[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-float:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(float[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyTo-java.nio.FloatBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/FloatBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">FloatBuffer</a> target) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-int:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(int[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-int:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(int[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyTo-java.nio.IntBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/IntBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">IntBuffer</a> target) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-long:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(long[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-long:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(long[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyTo-java.nio.LongBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/LongBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">LongBuffer</a> target) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-short:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(short[] array) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copyTo-short:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(short[] array, |
| int fromIndex, |
| int toIndex) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromIndex > toIndex</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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 name="copyTo-java.nio.ShortBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyTo</h4> |
| <pre>public void copyTo(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ShortBuffer.html?is-external=true" target="_blank" title="class or interface in java.nio">ShortBuffer</a> target) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the number of required source bytes is larger than the length |
| of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="fillByte-byte-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillByte</h4> |
| <pre>public void fillByte(byte value, |
| long count) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="fillChar-char-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillChar</h4> |
| <pre>public void fillChar(char value, |
| long count) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="fillFloat-float-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillFloat</h4> |
| <pre>public void fillFloat(float value, |
| long count) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="fillInt-int-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillInt</h4> |
| <pre>public void fillInt(int value, |
| long count) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="fillShort-short-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillShort</h4> |
| <pre>public void fillShort(short value, |
| long count) |
| throws <a href="../../../com/ibm/cuda/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="../../../com/ibm/cuda/CudaBuffer.html#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="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the space required is larger than the length of this buffer</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLength--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLength</h4> |
| <pre>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 name="slice-long-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>slice</h4> |
| <pre>public <a href="../../../com/ibm/cuda/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/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>fromOffset > toOffset</code></dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" target="_blank" title="class or interface in java.lang">IllegalStateException</a></code> - if this buffer has been closed (see <a href="../../../com/ibm/cuda/CudaBuffer.html#close--"><code>close()</code></a>)</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" target="_blank" title="class or interface in java.lang">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> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../com/ibm/cuda/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-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><strong>OpenJ9 CUDA Classes</strong></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../com/ibm/cuda/Cuda.html" title="class in com.ibm.cuda"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../com/ibm/cuda/CudaDevice.html" title="class in com.ibm.cuda"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?com/ibm/cuda/CudaBuffer.html" target="_top">Frames</a></li> |
| <li><a href="CudaBuffer.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../allclasses-noframe.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> |
| </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 name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <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/issues" target="_blank">Eclipse OpenJ9 issue.</a><br> Copyright © 2013, 2020, IBM Corp. and others.</small></p> |
| </body> |
| </html> |