Top Description Inners Constructors Methods
org.lwjgl

pack-priv final Class MemoryUtilSun

extends Object
Class Inheritance
Imports
java.lang.reflect.Field, .Method, .Modifier, java.nio.Buffer, sun.misc.Unsafe

MemoryUtil.Accessor implementations that depend on sun.misc. We use reflection to grab these, so that we can compile on JDKs that do not support sun.misc.
Author
Spasi

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
MemoryUtilSun.AccessorReflectFast

Implementation using reflection on ByteBuffer, FieldAccessor is used directly.

private static class
MemoryUtilSun.AccessorUnsafe

Implementation using sun.misc.Unsafe.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MemoryUtilSunback to summary
private MemoryUtilSun()
org.lwjgl back to summary

private Class MemoryUtilSun.AccessorReflectFast

extends Object
implements Accessor
Class Inheritance
All Implemented Interfaces
org.lwjgl.MemoryUtil.Accessor

Implementation using reflection on ByteBuffer, FieldAccessor is used directly.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AccessorReflectFastback to summary
pack-priv AccessorReflectFast()

Method Detail

getAddressback to summary
public long getAddress(final Buffer buffer)

Implements org.lwjgl.MemoryUtil.Accessor.getAddress.

org.lwjgl back to summary

private Class MemoryUtilSun.AccessorUnsafe

extends Object
implements Accessor
Class Inheritance
All Implemented Interfaces
org.lwjgl.MemoryUtil.Accessor

Implementation using sun.misc.Unsafe.

Field Summary

Modifier and TypeField and Description
private final long
private final sun.misc.Unsafe

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
private static sun.misc.Unsafe
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addressback to summary
private final long address
unsafeback to summary
private final sun.misc.Unsafe unsafe

Constructor Detail

AccessorUnsafeback to summary
pack-priv AccessorUnsafe()

Method Detail

getAddressback to summary
public long getAddress(final Buffer buffer)

Implements org.lwjgl.MemoryUtil.Accessor.getAddress.

getUnsafeInstanceback to summary
private static sun.misc.Unsafe getUnsafeInstance()