public class UnrolledUnsafeCopierBuilder extends Object
unsafe.putLong(dest, destOffset, unsafe.getLong(srcAddress)); destOffset += 8; srcAddress += 8 ... unsafe.putLong(dest, destOffset, unsafe.getLong(srcAddress));
Constructor and Description |
---|
UnrolledUnsafeCopierBuilder() |
Modifier and Type | Method and Description |
---|---|
UnsafeCopier |
build(sun.misc.Unsafe unsafe)
Constructs a new Copier using the passed in Unsafe instance
|
UnrolledUnsafeCopierBuilder |
length(long length) |
UnrolledUnsafeCopierBuilder |
of(Class clazz) |
UnrolledUnsafeCopierBuilder |
offset(long offset) |
public UnrolledUnsafeCopierBuilder of(Class clazz)
public UnrolledUnsafeCopierBuilder offset(long offset)
public UnrolledUnsafeCopierBuilder length(long length)
public UnsafeCopier build(sun.misc.Unsafe unsafe) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException
unsafe
- The sun.misc.Unsafe instance this copier usesIllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException
IllegalArgumentException
- if any argument is invalidCopyright © 2015. All rights reserved.