ahc.util.bytes
Class ByteArrayHelper
java.lang.Object
|
+--ahc.util.bytes.ByteArrayHelper
- public class ByteArrayHelper
- extends java.lang.Object
This is a collection of helper functions for byte arrays.
- Author:
- Arno Haase
Method Summary |
static void |
copy(byte[] from,
byte[] to,
int offsetTo)
completely copies one byte array into another but at an offset. |
static void |
copy(byte[] from,
byte[] to,
int offsetFrom,
int offsetTo,
int numBytes)
copies data from one byte array to another. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayHelper
public ByteArrayHelper()
copy
public static void copy(byte[] from,
byte[] to,
int offsetTo)
- completely copies one byte array into another but at an offset.
copy
public static void copy(byte[] from,
byte[] to,
int offsetFrom,
int offsetTo,
int numBytes)
- copies data from one byte array to another.