| <!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_302) on Wed Jan 26 15:15:50 PST 2022 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>ByteArrayUtil (datasketches-java 3.1.0 API)</title> |
| <meta name="date" content="2022-01-26"> |
| <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="ByteArrayUtil (datasketches-java 3.1.0 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static 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="../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ByteArrayUtil.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> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../org/apache/datasketches/BoundsOnRatiosInTupleSketchedSets.html" title="class in org.apache.datasketches"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../org/apache/datasketches/Family.html" title="enum in org.apache.datasketches"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?org/apache/datasketches/ByteArrayUtil.html" target="_top">Frames</a></li> |
| <li><a href="ByteArrayUtil.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">org.apache.datasketches</div> |
| <h2 title="Class ByteArrayUtil" class="title">Class ByteArrayUtil</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" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.datasketches.ByteArrayUtil</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public final class <span class="typeNameLabel">ByteArrayUtil</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">Useful methods for byte arrays.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Author:</span></dt> |
| <dd>Lee Rhodes</dd> |
| </dl> |
| </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="../../../org/apache/datasketches/ByteArrayUtil.html#ByteArrayUtil--">ByteArrayUtil</a></span>()</code> </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="t1" class="tableTab"><span><a href="javascript:show(1);">Static 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>static double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getDoubleBE-byte:A-int-">getDoubleBE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>double</i> from the given byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getDoubleLE-byte:A-int-">getDoubleLE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>double</i> from the given byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static float</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getFloatBE-byte:A-int-">getFloatBE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>float</i> from the given byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static float</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getFloatLE-byte:A-int-">getFloatLE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>float</i> from the given byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getIntBE-byte:A-int-">getIntBE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>int</i> from the given byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getIntLE-byte:A-int-">getIntLE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>int</i> from the given byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getLongBE-byte:A-int-">getLongBE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>long</i> from the source byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getLongLE-byte:A-int-">getLongLE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>long</i> from the given byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static short</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getShortBE-byte:A-int-">getShortBE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>short</i> from the given byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static short</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#getShortLE-byte:A-int-">getShortLE</a></span>(byte[] array, |
| int offset)</code> |
| <div class="block">Get a <i>short</i> from the given byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putDoubleBE-byte:A-int-double-">putDoubleBE</a></span>(byte[] array, |
| int offset, |
| double value)</code> |
| <div class="block">Put the source <i>double</i> into the destination byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putDoubleLE-byte:A-int-double-">putDoubleLE</a></span>(byte[] array, |
| int offset, |
| double value)</code> |
| <div class="block">Put the source <i>double</i> into the destination byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putFloatBE-byte:A-int-float-">putFloatBE</a></span>(byte[] array, |
| int offset, |
| float value)</code> |
| <div class="block">Put the source <i>float</i> into the destination byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putFloatLE-byte:A-int-float-">putFloatLE</a></span>(byte[] array, |
| int offset, |
| float value)</code> |
| <div class="block">Put the source <i>float</i> into the destination byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putIntBE-byte:A-int-int-">putIntBE</a></span>(byte[] array, |
| int offset, |
| int value)</code> |
| <div class="block">Put the source <i>int</i> into the destination byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putIntLE-byte:A-int-int-">putIntLE</a></span>(byte[] array, |
| int offset, |
| int value)</code> |
| <div class="block">Put the source <i>int</i> into the destination byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putLongBE-byte:A-int-long-">putLongBE</a></span>(byte[] array, |
| int offset, |
| long value)</code> |
| <div class="block">Put the source <i>long</i> into the destination byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putLongLE-byte:A-int-long-">putLongLE</a></span>(byte[] array, |
| int offset, |
| long value)</code> |
| <div class="block">Put the source <i>long</i> into the destination byte array starting at the given offset |
| in little endian order.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putShortBE-byte:A-int-short-">putShortBE</a></span>(byte[] array, |
| int offset, |
| short value)</code> |
| <div class="block">Put the source <i>short</i> into the destination byte array starting at the given offset |
| in big endian order.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/datasketches/ByteArrayUtil.html#putShortLE-byte:A-int-short-">putShortLE</a></span>(byte[] array, |
| int offset, |
| short value)</code> |
| <div class="block">Put the source <i>short</i> into the destination byte array starting at the given offset |
| in little endian order.</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" 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="ByteArrayUtil--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ByteArrayUtil</h4> |
| <pre>public ByteArrayUtil()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getShortLE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getShortLE</h4> |
| <pre>public static short getShortLE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>short</i> from the given byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>short</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putShortLE-byte:A-int-short-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putShortLE</h4> |
| <pre>public static void putShortLE(byte[] array, |
| int offset, |
| short value)</pre> |
| <div class="block">Put the source <i>short</i> into the destination byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>short</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getShortBE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getShortBE</h4> |
| <pre>public static short getShortBE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>short</i> from the given byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>short</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putShortBE-byte:A-int-short-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putShortBE</h4> |
| <pre>public static void putShortBE(byte[] array, |
| int offset, |
| short value)</pre> |
| <div class="block">Put the source <i>short</i> into the destination byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>short</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getIntLE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIntLE</h4> |
| <pre>public static int getIntLE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>int</i> from the given byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>int</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putIntLE-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putIntLE</h4> |
| <pre>public static void putIntLE(byte[] array, |
| int offset, |
| int value)</pre> |
| <div class="block">Put the source <i>int</i> into the destination byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>int</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getIntBE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIntBE</h4> |
| <pre>public static int getIntBE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>int</i> from the given byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>int</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putIntBE-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putIntBE</h4> |
| <pre>public static void putIntBE(byte[] array, |
| int offset, |
| int value)</pre> |
| <div class="block">Put the source <i>int</i> into the destination byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>int</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLongLE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLongLE</h4> |
| <pre>public static long getLongLE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>long</i> from the given byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>long</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putLongLE-byte:A-int-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putLongLE</h4> |
| <pre>public static void putLongLE(byte[] array, |
| int offset, |
| long value)</pre> |
| <div class="block">Put the source <i>long</i> into the destination byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>long</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLongBE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLongBE</h4> |
| <pre>public static long getLongBE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>long</i> from the source byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source starting point</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>long</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putLongBE-byte:A-int-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putLongBE</h4> |
| <pre>public static void putLongBE(byte[] array, |
| int offset, |
| long value)</pre> |
| <div class="block">Put the source <i>long</i> into the destination byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination starting point</dd> |
| <dd><code>value</code> - source <i>long</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getFloatLE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFloatLE</h4> |
| <pre>public static float getFloatLE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>float</i> from the given byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>float</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putFloatLE-byte:A-int-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putFloatLE</h4> |
| <pre>public static void putFloatLE(byte[] array, |
| int offset, |
| float value)</pre> |
| <div class="block">Put the source <i>float</i> into the destination byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>float</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getFloatBE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFloatBE</h4> |
| <pre>public static float getFloatBE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>float</i> from the given byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>float</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putFloatBE-byte:A-int-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putFloatBE</h4> |
| <pre>public static void putFloatBE(byte[] array, |
| int offset, |
| float value)</pre> |
| <div class="block">Put the source <i>float</i> into the destination byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>float</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDoubleLE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDoubleLE</h4> |
| <pre>public static double getDoubleLE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>double</i> from the given byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>double</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putDoubleLE-byte:A-int-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putDoubleLE</h4> |
| <pre>public static void putDoubleLE(byte[] array, |
| int offset, |
| double value)</pre> |
| <div class="block">Put the source <i>double</i> into the destination byte array starting at the given offset |
| in little endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>double</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDoubleBE-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDoubleBE</h4> |
| <pre>public static double getDoubleBE(byte[] array, |
| int offset)</pre> |
| <div class="block">Get a <i>double</i> from the given byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - source byte array</dd> |
| <dd><code>offset</code> - source offset</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <i>double</i></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putDoubleBE-byte:A-int-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>putDoubleBE</h4> |
| <pre>public static void putDoubleBE(byte[] array, |
| int offset, |
| double value)</pre> |
| <div class="block">Put the source <i>double</i> into the destination byte array starting at the given offset |
| in big endian order. |
| There is no bounds checking.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - destination byte array</dd> |
| <dd><code>offset</code> - destination offset</dd> |
| <dd><code>value</code> - source <i>double</i></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="../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ByteArrayUtil.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> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../org/apache/datasketches/BoundsOnRatiosInTupleSketchedSets.html" title="class in org.apache.datasketches"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../org/apache/datasketches/Family.html" title="enum in org.apache.datasketches"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?org/apache/datasketches/ByteArrayUtil.html" target="_top">Frames</a></li> |
| <li><a href="ByteArrayUtil.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>Copyright © 2015–2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |