Package io.protostuff.runtime
Class UnsafeAccessor
- java.lang.Object
-
- io.protostuff.runtime.Accessor
-
- io.protostuff.runtime.UnsafeAccessor
-
public final class UnsafeAccessor extends Accessor
Read/write from/to fields using sun.misc.Unsafe
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.protostuff.runtime.Accessor
Accessor.Factory
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static Accessor.Factory
FACTORY
long
offset
-
Constructor Summary
Constructors Constructor Description UnsafeAccessor(java.lang.reflect.Field f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(java.lang.Object owner)
Get the field value.void
set(java.lang.Object owner, java.lang.Object value)
Set the field value.
-
-
-
Field Detail
-
FACTORY
static final Accessor.Factory FACTORY
-
offset
public final long offset
-
-
Method Detail
-
set
public void set(java.lang.Object owner, java.lang.Object value)
Description copied from class:Accessor
Set the field value.
-
-