|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Unsafe
public class Unsafe
A collection of "back-door" utilities and helpers used internally.
This class is not intended to be used externally and any usage of this class promises nothing more than un-deterministic behavior which may or may not remain consistent from release to release.
| Method Summary | |
|---|---|
int |
getArrayOffset(Binary bin)Return the offset into the underlying byte[] for the specified Binary. |
byte[] |
getByteArray(Binary bin)Return the underlying byte[] for the specified Binary. |
static Unsafe |
getUnsafe()Return the singleton Unsafe instance. |
Binary |
newBinary(byte[] ab, int of, int cb)Return a new Binary instance backed by the specified byte[] beginning at the specified offset and of the specified length. |
| Method Detail |
|---|
public static Unsafe getUnsafe()
Unsafe instance. This method may only be called internally.public byte[] getByteArray(Binary bin)
Note: unlike the AbstractReadBuffer.toByteArray() method, this method does not create a copy of the underlying array; it is the caller's responsibility not to mutate the contents of the returned array.
bin - the binarypublic int getArrayOffset(Binary bin)
underlying byte[] for the specified Binary.bin - the binary
public Binary newBinary(byte[] ab,
int of,
int cb)
Binary instance backed by the specified byte[] beginning at the specified offset and of the specified length.
Note: unlike the analagous constructor, this method does not create a copy of the passed array; it is the caller's responsibility not to mutate the contents of the array.
ab - the byte arrayof - the starting offsetcb - the length of the binary
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||