public class UnsafeSliceFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static UnsafeSliceFactory |
getInstance()
Get a factory for creating "unsafe" slices that can reference
arbitrary memory addresses.
|
Slice |
newSlice(long address,
int size)
Creates a slice for directly a raw memory address.
|
Slice |
newSlice(long address,
int size,
Object reference)
Creates a slice for directly a raw memory address.
|
Slice |
newSlice(Object base,
long address,
int size) |
public static UnsafeSliceFactory getInstance()
checkPermission method is called with a
ReflectPermission("suppressAccessChecks") permission.public Slice newSlice(long address, int size)
address - the raw memory address basesize - the size of the slicepublic Slice newSlice(long address, int size, Object reference)
address - the raw memory address basesize - the size of the slicereference - the object referenceCopyright © 2012-2017. All Rights Reserved.