1684 lines
104 KiB
HTML
1684 lines
104 KiB
HTML
<!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 (version 1.7.0_51) on Wed Apr 06 13:11:11 EDT 2016 -->
|
|
<title>Packing (Parallel Java 2 Library Documentation)</title>
|
|
<meta name="date" content="2016-04-06">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Packing (Parallel Java 2 Library Documentation)";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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/Packing.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../edu/rit/util/MultiSet.html" title="class in edu.rit.util"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../edu/rit/util/Pair.html" title="class in edu.rit.util"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?edu/rit/util/Packing.html" target="_top">Frames</a></li>
|
|
<li><a href="Packing.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>Constr | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </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">edu.rit.util</div>
|
|
<h2 title="Class Packing" class="title">Class Packing</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="http://docs.oracle.com/javase/7/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>edu.rit.util.Packing</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">Packing</span>
|
|
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
|
|
<div class="block">Class Packing provides static methods for packing and unpacking arrays of
|
|
bytes, short integers, and integers into and out of short integers, integers,
|
|
long integers, and arrays thereof.
|
|
<P>
|
|
<I>Note:</I> The operations in class Packing are not multiple thread safe.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packIntBigEndian(byte[], int)">packIntBigEndian</a></strong>(byte[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack bytes from the given array into an integer in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packIntBigEndian(byte[], int, int[], int, int)">packIntBigEndian</a></strong>(byte[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack bytes from the given array into the given array of integers in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packIntBigEndian(short[], int)">packIntBigEndian</a></strong>(short[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack short integers from the given array into an integer in big-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packIntBigEndian(short[], int, int[], int, int)">packIntBigEndian</a></strong>(short[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack short integers from the given array into the given array of integers
|
|
in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packIntLittleEndian(byte[], int)">packIntLittleEndian</a></strong>(byte[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack bytes from the given array into an integer in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packIntLittleEndian(byte[], int, int[], int, int)">packIntLittleEndian</a></strong>(byte[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack bytes from the given array into the given array of integers in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packIntLittleEndian(short[], int)">packIntLittleEndian</a></strong>(short[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack short integers from the given array into an integer in little-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packIntLittleEndian(short[], int, int[], int, int)">packIntLittleEndian</a></strong>(short[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack short integers from the given array into the given array of integers
|
|
in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static long</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongBigEndian(byte[], int)">packLongBigEndian</a></strong>(byte[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack bytes from the given array into a long integer in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongBigEndian(byte[], int, long[], int, int)">packLongBigEndian</a></strong>(byte[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack bytes from the given array into the given array of long integers in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static long</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongBigEndian(int[], int)">packLongBigEndian</a></strong>(int[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack integers from the given array into a long integer in big-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongBigEndian(int[], int, long[], int, int)">packLongBigEndian</a></strong>(int[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack integers from the given array into the given array of long integers
|
|
in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static long</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongBigEndian(short[], int)">packLongBigEndian</a></strong>(short[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack short integers from the given array into a long integer in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongBigEndian(short[], int, long[], int, int)">packLongBigEndian</a></strong>(short[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack short integers from the given array into the given array of long
|
|
integers in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static long</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongLittleEndian(byte[], int)">packLongLittleEndian</a></strong>(byte[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack bytes from the given array into a long integer in little-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongLittleEndian(byte[], int, long[], int, int)">packLongLittleEndian</a></strong>(byte[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack bytes from the given array into the given array of long integers in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static long</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongLittleEndian(int[], int)">packLongLittleEndian</a></strong>(int[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack integers from the given array into a long integer in little-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongLittleEndian(int[], int, long[], int, int)">packLongLittleEndian</a></strong>(int[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack integers from the given array into the given array of long integers
|
|
in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static long</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongLittleEndian(short[], int)">packLongLittleEndian</a></strong>(short[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack short integers from the given array into a long integer in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packLongLittleEndian(short[], int, long[], int, int)">packLongLittleEndian</a></strong>(short[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack short integers from the given array into the given array of long
|
|
integers in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static short</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packShortBigEndian(byte[], int)">packShortBigEndian</a></strong>(byte[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack bytes from the given array into a short integer in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packShortBigEndian(byte[], int, short[], int, int)">packShortBigEndian</a></strong>(byte[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack bytes from the given array into the given array of short integers in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static short</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packShortLittleEndian(byte[], int)">packShortLittleEndian</a></strong>(byte[] src,
|
|
int srcPos)</code>
|
|
<div class="block">Pack bytes from the given array into a short integer in little-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#packShortLittleEndian(byte[], int, short[], int, int)">packShortLittleEndian</a></strong>(byte[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Pack bytes from the given array into the given array of short integers in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackIntBigEndian(int[], int, byte[], int, int)">unpackIntBigEndian</a></strong>(int[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack integers from the given array into the given array of bytes in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackIntBigEndian(int[], int, short[], int, int)">unpackIntBigEndian</a></strong>(int[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack integers from the given array into the given array of short
|
|
integers in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackIntBigEndian(int, byte[], int)">unpackIntBigEndian</a></strong>(int src,
|
|
byte[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given integer into the given array of bytes in big-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackIntBigEndian(int, short[], int)">unpackIntBigEndian</a></strong>(int src,
|
|
short[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given integer into the given array of short integers in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackIntLittleEndian(int[], int, byte[], int, int)">unpackIntLittleEndian</a></strong>(int[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack integers from the given array into the given array of bytes in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackIntLittleEndian(int[], int, short[], int, int)">unpackIntLittleEndian</a></strong>(int[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack integers from the given array into the given array of short
|
|
integers in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackIntLittleEndian(int, byte[], int)">unpackIntLittleEndian</a></strong>(int src,
|
|
byte[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given integer into the given array of bytes in little-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackIntLittleEndian(int, short[], int)">unpackIntLittleEndian</a></strong>(int src,
|
|
short[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given integer into the given array of short integers in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongBigEndian(long[], int, byte[], int, int)">unpackLongBigEndian</a></strong>(long[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack long integers from the given array into the given array of bytes
|
|
in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongBigEndian(long[], int, int[], int, int)">unpackLongBigEndian</a></strong>(long[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack long integers from the given array into the given array of
|
|
integers in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongBigEndian(long[], int, short[], int, int)">unpackLongBigEndian</a></strong>(long[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack long integers from the given array into the given array of short
|
|
integers in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongBigEndian(long, byte[], int)">unpackLongBigEndian</a></strong>(long src,
|
|
byte[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given long integer into the given array of bytes in big-endian
|
|
order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongBigEndian(long, int[], int)">unpackLongBigEndian</a></strong>(long src,
|
|
int[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given long integer into the given array of integers in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongBigEndian(long, short[], int)">unpackLongBigEndian</a></strong>(long src,
|
|
short[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given long integer into the given array of short integers in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongLittleEndian(long[], int, byte[], int, int)">unpackLongLittleEndian</a></strong>(long[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack long integers from the given array into the given array of bytes
|
|
in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongLittleEndian(long[], int, int[], int, int)">unpackLongLittleEndian</a></strong>(long[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack long integers from the given array into the given array of
|
|
integers in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongLittleEndian(long[], int, short[], int, int)">unpackLongLittleEndian</a></strong>(long[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack long integers from the given array into the given array of short
|
|
integers in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongLittleEndian(long, byte[], int)">unpackLongLittleEndian</a></strong>(long src,
|
|
byte[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given long integer into the given array of bytes in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongLittleEndian(long, int[], int)">unpackLongLittleEndian</a></strong>(long src,
|
|
int[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given long integer into the given array of integers in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackLongLittleEndian(long, short[], int)">unpackLongLittleEndian</a></strong>(long src,
|
|
short[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given long integer into the given array of short integers in
|
|
little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackShortBigEndian(short[], int, byte[], int, int)">unpackShortBigEndian</a></strong>(short[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack short integers from the given array into the given array of bytes
|
|
in big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackShortBigEndian(short, byte[], int)">unpackShortBigEndian</a></strong>(short src,
|
|
byte[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given short integer into the given array of bytes in
|
|
big-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackShortLittleEndian(short[], int, byte[], int, int)">unpackShortLittleEndian</a></strong>(short[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</code>
|
|
<div class="block">Unpack short integers from the given array into the given array of bytes
|
|
in little-endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/util/Packing.html#unpackShortLittleEndian(short, byte[], int)">unpackShortLittleEndian</a></strong>(short src,
|
|
byte[] dst,
|
|
int dstPos)</code>
|
|
<div class="block">Unpack the given short integer into the given array of bytes 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="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/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">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="packShortLittleEndian(byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packShortLittleEndian</h4>
|
|
<pre>public static short packShortLittleEndian(byte[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack bytes from the given array into a short integer in little-endian
|
|
order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+1]</TT>
|
|
packed into a short integer in little-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packShortBigEndian(byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packShortBigEndian</h4>
|
|
<pre>public static short packShortBigEndian(byte[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack bytes from the given array into a short integer in big-endian order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+1]</TT>
|
|
packed into a short integer in big-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packShortLittleEndian(byte[], int, short[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packShortLittleEndian</h4>
|
|
<pre>public static void packShortLittleEndian(byte[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack bytes from the given array into the given array of short integers in
|
|
little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+2*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd><dd><code>dst</code> - Destination array of packed short integers.</dd><dd><code>dstPos</code> - Index of first packed short integer.</dd><dd><code>len</code> - Number of short integers (not bytes!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packShortBigEndian(byte[], int, short[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packShortBigEndian</h4>
|
|
<pre>public static void packShortBigEndian(byte[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack bytes from the given array into the given array of short integers in
|
|
big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+2*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd><dd><code>dst</code> - Destination array of packed short integers.</dd><dd><code>dstPos</code> - Index of first packed integer.</dd><dd><code>len</code> - Number of short integers (not bytes!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packIntLittleEndian(byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packIntLittleEndian</h4>
|
|
<pre>public static int packIntLittleEndian(byte[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack bytes from the given array into an integer in little-endian order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+3]</TT>
|
|
packed into an integer in little-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packIntBigEndian(byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packIntBigEndian</h4>
|
|
<pre>public static int packIntBigEndian(byte[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack bytes from the given array into an integer in big-endian order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+3]</TT>
|
|
packed into an integer in big-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packIntLittleEndian(byte[], int, int[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packIntLittleEndian</h4>
|
|
<pre>public static void packIntLittleEndian(byte[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack bytes from the given array into the given array of integers in
|
|
little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+4*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd><dd><code>dst</code> - Destination array of packed integers.</dd><dd><code>dstPos</code> - Index of first packed integer.</dd><dd><code>len</code> - Number of integers (not bytes!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packIntBigEndian(byte[], int, int[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packIntBigEndian</h4>
|
|
<pre>public static void packIntBigEndian(byte[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack bytes from the given array into the given array of integers in
|
|
big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+4*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd><dd><code>dst</code> - Destination array of packed integers.</dd><dd><code>dstPos</code> - Index of first packed integer.</dd><dd><code>len</code> - Number of integers (not bytes!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongLittleEndian(byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongLittleEndian</h4>
|
|
<pre>public static long packLongLittleEndian(byte[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack bytes from the given array into a long integer in little-endian
|
|
order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+7]</TT>
|
|
packed into a long integer in little-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongBigEndian(byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongBigEndian</h4>
|
|
<pre>public static long packLongBigEndian(byte[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack bytes from the given array into a long integer in big-endian order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+7]</TT>
|
|
packed into a long integer in big-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongLittleEndian(byte[], int, long[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongLittleEndian</h4>
|
|
<pre>public static void packLongLittleEndian(byte[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack bytes from the given array into the given array of long integers in
|
|
little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+8*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd><dd><code>dst</code> - Destination array of packed long integers.</dd><dd><code>dstPos</code> - Index of first packed long integer.</dd><dd><code>len</code> - Number of long integers (not bytes!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongBigEndian(byte[], int, long[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongBigEndian</h4>
|
|
<pre>public static void packLongBigEndian(byte[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack bytes from the given array into the given array of long integers in
|
|
big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+8*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of bytes to pack.</dd><dd><code>srcPos</code> - Index of first byte to pack.</dd><dd><code>dst</code> - Destination array of packed long integers.</dd><dd><code>dstPos</code> - Index of first packed long integer.</dd><dd><code>len</code> - Number of long integers (not bytes!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packIntLittleEndian(short[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packIntLittleEndian</h4>
|
|
<pre>public static int packIntLittleEndian(short[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack short integers from the given array into an integer in little-endian
|
|
order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to pack.</dd><dd><code>srcPos</code> - Index of first short integer to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+1]</TT>
|
|
packed into an integer in little-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packIntBigEndian(short[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packIntBigEndian</h4>
|
|
<pre>public static int packIntBigEndian(short[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack short integers from the given array into an integer in big-endian
|
|
order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to pack.</dd><dd><code>srcPos</code> - Index of first short integer to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+1]</TT>
|
|
packed into an integer in big-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packIntLittleEndian(short[], int, int[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packIntLittleEndian</h4>
|
|
<pre>public static void packIntLittleEndian(short[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack short integers from the given array into the given array of integers
|
|
in little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+2*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to pack.</dd><dd><code>srcPos</code> - Index of first short integer to pack.</dd><dd><code>dst</code> - Destination array of packed integers.</dd><dd><code>dstPos</code> - Index of first packed integer.</dd><dd><code>len</code> - Number of integers (not short integers!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packIntBigEndian(short[], int, int[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packIntBigEndian</h4>
|
|
<pre>public static void packIntBigEndian(short[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack short integers from the given array into the given array of integers
|
|
in big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+2*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to pack.</dd><dd><code>srcPos</code> - Index of first short integer to pack.</dd><dd><code>dst</code> - Destination array of packed integers.</dd><dd><code>dstPos</code> - Index of first packed integer.</dd><dd><code>len</code> - Number of integers (not short integers!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongLittleEndian(short[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongLittleEndian</h4>
|
|
<pre>public static long packLongLittleEndian(short[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack short integers from the given array into a long integer in
|
|
little-endian order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to pack.</dd><dd><code>srcPos</code> - Index of first short integer to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+3]</TT>
|
|
packed into a long integer in little-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongBigEndian(short[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongBigEndian</h4>
|
|
<pre>public static long packLongBigEndian(short[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack short integers from the given array into a long integer in
|
|
big-endian order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to pack.</dd><dd><code>srcPos</code> - Index of first short integer to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+3]</TT>
|
|
packed into a long integer in big-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongLittleEndian(short[], int, long[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongLittleEndian</h4>
|
|
<pre>public static void packLongLittleEndian(short[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack short integers from the given array into the given array of long
|
|
integers in little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+4*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to pack.</dd><dd><code>srcPos</code> - Index of first short integer to pack.</dd><dd><code>dst</code> - Destination array of packed long integers.</dd><dd><code>dstPos</code> - Index of first packed long integer.</dd><dd><code>len</code> - Number of long integers (not short integers!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongBigEndian(short[], int, long[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongBigEndian</h4>
|
|
<pre>public static void packLongBigEndian(short[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack short integers from the given array into the given array of long
|
|
integers in big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+4*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to pack.</dd><dd><code>srcPos</code> - Index of first short integer to pack.</dd><dd><code>dst</code> - Destination array of packed long integers.</dd><dd><code>dstPos</code> - Index of first packed long integer.</dd><dd><code>len</code> - Number of long integers (not short integers!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongLittleEndian(int[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongLittleEndian</h4>
|
|
<pre>public static long packLongLittleEndian(int[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack integers from the given array into a long integer in little-endian
|
|
order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of integers to pack.</dd><dd><code>srcPos</code> - Index of first integer to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+1]</TT>
|
|
packed into a long integer in little-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongBigEndian(int[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongBigEndian</h4>
|
|
<pre>public static long packLongBigEndian(int[] src,
|
|
int srcPos)</pre>
|
|
<div class="block">Pack integers from the given array into a long integer in big-endian
|
|
order.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of integers to pack.</dd><dd><code>srcPos</code> - Index of first integer to pack.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Elements <TT>src[srcPos]</TT> through <TT>src[srcPos+1]</TT>
|
|
packed into a long integer in big-endian order.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongLittleEndian(int[], int, long[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongLittleEndian</h4>
|
|
<pre>public static void packLongLittleEndian(int[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack integers from the given array into the given array of long integers
|
|
in little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+2*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of integers to pack.</dd><dd><code>srcPos</code> - Index of first integer to pack.</dd><dd><code>dst</code> - Destination array of packed long integers.</dd><dd><code>dstPos</code> - Index of first packed long integer.</dd><dd><code>len</code> - Number of long integers (not integers!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="packLongBigEndian(int[], int, long[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>packLongBigEndian</h4>
|
|
<pre>public static void packLongBigEndian(int[] src,
|
|
int srcPos,
|
|
long[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Pack integers from the given array into the given array of long integers
|
|
in big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+2*len-1]</TT> are packed into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of integers to pack.</dd><dd><code>srcPos</code> - Index of first integer to pack.</dd><dd><code>dst</code> - Destination array of packed long integers.</dd><dd><code>dstPos</code> - Index of first packed long integer.</dd><dd><code>len</code> - Number of long integers (not integers!) to pack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if packing would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackShortLittleEndian(short, byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackShortLittleEndian</h4>
|
|
<pre>public static void unpackShortLittleEndian(short src,
|
|
byte[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given short integer into the given array of bytes in
|
|
little-endian order. The short integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source short integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackShortBigEndian(short, byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackShortBigEndian</h4>
|
|
<pre>public static void unpackShortBigEndian(short src,
|
|
byte[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given short integer into the given array of bytes in
|
|
big-endian order. The short integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source short integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackShortLittleEndian(short[], int, byte[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackShortLittleEndian</h4>
|
|
<pre>public static void unpackShortLittleEndian(short[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack short integers from the given array into the given array of bytes
|
|
in little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+2*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to unpack.</dd><dd><code>srcPos</code> - Index of first short integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd><dd><code>len</code> - Number of short integers (not bytes!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackShortBigEndian(short[], int, byte[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackShortBigEndian</h4>
|
|
<pre>public static void unpackShortBigEndian(short[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack short integers from the given array into the given array of bytes
|
|
in big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+2*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of short integers to unpack.</dd><dd><code>srcPos</code> - Index of first short integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd><dd><code>len</code> - Number of short integers (not bytes!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackIntLittleEndian(int, byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackIntLittleEndian</h4>
|
|
<pre>public static void unpackIntLittleEndian(int src,
|
|
byte[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given integer into the given array of bytes in little-endian
|
|
order. The integer is unpacked into elements <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+3]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackIntBigEndian(int, byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackIntBigEndian</h4>
|
|
<pre>public static void unpackIntBigEndian(int src,
|
|
byte[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given integer into the given array of bytes in big-endian
|
|
order. The integer is unpacked into elements <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+3]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackIntLittleEndian(int[], int, byte[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackIntLittleEndian</h4>
|
|
<pre>public static void unpackIntLittleEndian(int[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack integers from the given array into the given array of bytes in
|
|
little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+4*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of integers to unpack.</dd><dd><code>srcPos</code> - Index of first integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd><dd><code>len</code> - Number of integers (not bytes!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackIntBigEndian(int[], int, byte[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackIntBigEndian</h4>
|
|
<pre>public static void unpackIntBigEndian(int[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack integers from the given array into the given array of bytes in
|
|
big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+4*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of integers to unpack.</dd><dd><code>srcPos</code> - Index of first integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd><dd><code>len</code> - Number of integers (not bytes!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongLittleEndian(long, byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongLittleEndian</h4>
|
|
<pre>public static void unpackLongLittleEndian(long src,
|
|
byte[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given long integer into the given array of bytes in
|
|
little-endian order. The long integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+7]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongBigEndian(long, byte[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongBigEndian</h4>
|
|
<pre>public static void unpackLongBigEndian(long src,
|
|
byte[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given long integer into the given array of bytes in big-endian
|
|
order. The long integer is unpacked into elements <TT>dst[dstPos]</TT>
|
|
through <TT>dst[dstPos+7]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongLittleEndian(long[], int, byte[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongLittleEndian</h4>
|
|
<pre>public static void unpackLongLittleEndian(long[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack long integers from the given array into the given array of bytes
|
|
in little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+8*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of long integers to unpack.</dd><dd><code>srcPos</code> - Index of first long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd><dd><code>len</code> - Number of integers (not bytes!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongBigEndian(long[], int, byte[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongBigEndian</h4>
|
|
<pre>public static void unpackLongBigEndian(long[] src,
|
|
int srcPos,
|
|
byte[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack long integers from the given array into the given array of bytes
|
|
in big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+8*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of long integers to unpack.</dd><dd><code>srcPos</code> - Index of first long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked bytes.</dd><dd><code>dstPos</code> - Index of first unpacked byte.</dd><dd><code>len</code> - Number of integers (not bytes!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackIntLittleEndian(int, short[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackIntLittleEndian</h4>
|
|
<pre>public static void unpackIntLittleEndian(int src,
|
|
short[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given integer into the given array of short integers in
|
|
little-endian order. The integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked short integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackIntBigEndian(int, short[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackIntBigEndian</h4>
|
|
<pre>public static void unpackIntBigEndian(int src,
|
|
short[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given integer into the given array of short integers in
|
|
big-endian order. The integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked short integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackIntLittleEndian(int[], int, short[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackIntLittleEndian</h4>
|
|
<pre>public static void unpackIntLittleEndian(int[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack integers from the given array into the given array of short
|
|
integers in little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+2*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of integers to unpack.</dd><dd><code>srcPos</code> - Index of first integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked short integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd><dd><code>len</code> - Number of integers (not short integers!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackIntBigEndian(int[], int, short[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackIntBigEndian</h4>
|
|
<pre>public static void unpackIntBigEndian(int[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack integers from the given array into the given array of short
|
|
integers in big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+2*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of integers to unpack.</dd><dd><code>srcPos</code> - Index of first integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked short integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd><dd><code>len</code> - Number of integers (not short integers!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongLittleEndian(long, short[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongLittleEndian</h4>
|
|
<pre>public static void unpackLongLittleEndian(long src,
|
|
short[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given long integer into the given array of short integers in
|
|
little-endian order. The long integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+3]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked short integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongBigEndian(long, short[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongBigEndian</h4>
|
|
<pre>public static void unpackLongBigEndian(long src,
|
|
short[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given long integer into the given array of short integers in
|
|
big-endian order. The long integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+3]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked short integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongLittleEndian(long[], int, short[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongLittleEndian</h4>
|
|
<pre>public static void unpackLongLittleEndian(long[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack long integers from the given array into the given array of short
|
|
integers in little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+4*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of long integers to unpack.</dd><dd><code>srcPos</code> - Index of first long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked short integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd><dd><code>len</code> - Number of long integers (not short integers!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongBigEndian(long[], int, short[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongBigEndian</h4>
|
|
<pre>public static void unpackLongBigEndian(long[] src,
|
|
int srcPos,
|
|
short[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack long integers from the given array into the given array of short
|
|
integers in big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+4*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of long integers to unpack.</dd><dd><code>srcPos</code> - Index of first long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked short integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd><dd><code>len</code> - Number of long integers (not short integers!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongLittleEndian(long, int[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongLittleEndian</h4>
|
|
<pre>public static void unpackLongLittleEndian(long src,
|
|
int[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given long integer into the given array of integers in
|
|
little-endian order. The long integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked integers.</dd><dd><code>dstPos</code> - Index of first unpacked integer.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongBigEndian(long, int[], int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongBigEndian</h4>
|
|
<pre>public static void unpackLongBigEndian(long src,
|
|
int[] dst,
|
|
int dstPos)</pre>
|
|
<div class="block">Unpack the given long integer into the given array of integers in
|
|
big-endian order. The long integer is unpacked into elements
|
|
<TT>dst[dstPos]</TT> through <TT>dst[dstPos+1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked integers.</dd><dd><code>dstPos</code> - Index of first unpacked short integer.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongLittleEndian(long[], int, int[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unpackLongLittleEndian</h4>
|
|
<pre>public static void unpackLongLittleEndian(long[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack long integers from the given array into the given array of
|
|
integers in little-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+2*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of long integers to unpack.</dd><dd><code>srcPos</code> - Index of first long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked integers.</dd><dd><code>dstPos</code> - Index of first unpacked integer.</dd><dd><code>len</code> - Number of long integers (not integers!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unpackLongBigEndian(long[], int, int[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>unpackLongBigEndian</h4>
|
|
<pre>public static void unpackLongBigEndian(long[] src,
|
|
int srcPos,
|
|
int[] dst,
|
|
int dstPos,
|
|
int len)</pre>
|
|
<div class="block">Unpack long integers from the given array into the given array of
|
|
integers in big-endian order. Elements <TT>src[srcPos]</TT> through
|
|
<TT>src[srcPos+len-1]</TT> are unpacked into <TT>dst[dstPos]</TT> through
|
|
<TT>dst[dstPos+2*len-1]</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Source array of long integers to unpack.</dd><dd><code>srcPos</code> - Index of first long integer to unpack.</dd><dd><code>dst</code> - Destination array to receive unpacked integers.</dd><dd><code>dstPos</code> - Index of first unpacked integer.</dd><dd><code>len</code> - Number of long integers (not integers!) to unpack.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>src</TT> is null. Thrown if
|
|
<TT>dst</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if unpacking would cause accessing array
|
|
elements out of bounds; in this case <TT>dst</TT> is not altered.</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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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/Packing.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../edu/rit/util/MultiSet.html" title="class in edu.rit.util"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../edu/rit/util/Pair.html" title="class in edu.rit.util"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?edu/rit/util/Packing.html" target="_top">Frames</a></li>
|
|
<li><a href="Packing.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>Constr | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </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><FONT SIZE="-2">Copyright © 2013–2016 by Alan Kaminsky. All rights reserved. Send comments to ark</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">@</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">cs.rit.edu.</FONT></small></p>
|
|
</body>
|
|
</html>
|