public final class MemoryUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
binarySearchLongs(Memory mem,
int fromLongIndex,
int toLongIndex,
long key)
Searches a range of the specified array of longs for the specified value using the binary
search algorithm.
|
static void |
copy(Memory source,
long srcOffsetBytes,
Memory destination,
long dstOffsetBytes,
long lengthBytes)
Deprecated.
this method was moved to
NativeMemory.copy(Memory, long, Memory, long, long) |
@Deprecated public static void copy(Memory source, long srcOffsetBytes, Memory destination, long dstOffsetBytes, long lengthBytes)
NativeMemory.copy(Memory, long, Memory, long, long)source - the source MemorysrcOffsetBytes - the source offsetdestination - the destination MemorydstOffsetBytes - the destination offsetlengthBytes - the number of bytes to copypublic static int binarySearchLongs(Memory mem, int fromLongIndex, int toLongIndex, long key)
mem - the Memory to be searchedfromLongIndex - the index of the first element (inclusive) to be searchedtoLongIndex - the index of the last element (exclusive) to be searchedkey - the value to be searched forCopyright © 2015–2016 Yahoo! Inc.. All rights reserved.