APIdia Launch Partner
Top Inners Fields Constructors Methods
java.lang.invoke

pack-priv final Class VarHandleByteArrayAsFloats

extends VarHandleByteArrayBase
Class Inheritance
Imports
jdk.internal.access.JavaNioAccess, .SharedSecrets, jdk.internal.foreign.AbstractMemorySegmentImpl, .MemorySessionImpl, jdk.internal.misc.ScopedMemoryAccess, .Unsafe, jdk.internal.util.Preconditions, jdk.internal.vm.annotation.ForceInline, java.lang.foreign.MemorySegment, java.nio.ByteBuffer, .ReadOnlyBufferException, java.util.List, .Objects, java.util.function.BiFunction

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv abstract static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final JavaNioAccess
pack-priv static final ScopedMemoryAccess
Inherited from java.lang.invoke.VarHandleByteArrayBase:
BEBUFFER_ADDRESSBUFFER_LIMITBYTE_BUFFER_HBBYTE_BUFFER_IS_READ_ONLY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
convEndian(boolean big, float v)

pack-priv static float
convEndian(boolean big, int rv)

Inherited from java.lang.invoke.VarHandleByteArrayBase:
newIllegalStateExceptionForMisalignedAccess

Field Detail

ALIGNback to summary
pack-priv static final int ALIGN
NIO_ACCESSback to summary
pack-priv static final JavaNioAccess NIO_ACCESS
SCOPED_MEMORY_ACCESSback to summary
pack-priv static final ScopedMemoryAccess SCOPED_MEMORY_ACCESS

Constructor Detail

VarHandleByteArrayAsFloatsback to summary
pack-priv VarHandleByteArrayAsFloats()

Method Detail

convEndianback to summary
pack-priv static int convEndian(boolean big, float v)
Annotations
@ForceInline
convEndianback to summary
pack-priv static float convEndian(boolean big, int rv)
Annotations
@ForceInline
java.lang.invoke back to summary

pack-priv final Class VarHandleByteArrayAsFloats.ArrayHandle

extends ByteArrayViewVarHandle
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final VarForm
Inherited from java.lang.invoke.VarHandleByteArrayAsFloats.ByteArrayViewVarHandle:
be

Constructor Summary

AccessConstructor and Description
pack-priv
ArrayHandle(boolean be)

private
ArrayHandle(boolean be, boolean exact)

Method Summary

Modifier and TypeMethod and Description
pack-priv final MethodType
pack-priv static float
get(VarHandle ob, Object oba, int index)

pack-priv static int
index(byte[] ba, int index)

pack-priv static void
set(VarHandle ob, Object oba, int index, float value)

public VarHandleByteArrayAsFloats.ArrayHandle
withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

public VarHandleByteArrayAsFloats.ArrayHandle
withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

Field Detail

FORMback to summary
pack-priv static final VarForm FORM

Constructor Detail

ArrayHandleback to summary
pack-priv ArrayHandle(boolean be)
ArrayHandleback to summary
private ArrayHandle(boolean be, boolean exact)

Method Detail

accessModeTypeUncachedback to summary
pack-priv final MethodType accessModeTypeUncached(VarHandle.AccessType at)

Implements abstract java.lang.invoke.VarHandle.accessModeTypeUncached.

Annotations
@Override
getback to summary
pack-priv static float get(VarHandle ob, Object oba, int index)
Annotations
@ForceInline
indexback to summary
pack-priv static int index(byte[] ba, int index)
Annotations
@ForceInline
setback to summary
pack-priv static void set(VarHandle ob, Object oba, int index, float value)
Annotations
@ForceInline
withInvokeBehaviorback to summary
public VarHandleByteArrayAsFloats.ArrayHandle withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

If this VarHandle already has invoke behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return false.

Annotations
@Override
withInvokeExactBehaviorback to summary
public VarHandleByteArrayAsFloats.ArrayHandle withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

If this VarHandle already has invoke-exact behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return true.

Annotations
@Override
java.lang.invoke back to summary

pack-priv abstract sealed Class VarHandleByteArrayAsFloats.ByteArrayViewVarHandle

extends VarHandle
permits ArrayHandle, ByteBufferHandle
Class Inheritance
Known Direct Subclasses
java.lang.invoke.VarHandleByteArrayAsFloats.ArrayHandle, java.lang.invoke.VarHandleByteArrayAsFloats.ByteBufferHandle

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
Inherited from java.lang.invoke.VarHandle:
exactmethodHandleTablemethodTypeTablevform

Constructor Summary

AccessConstructor and Description
pack-priv
ByteArrayViewVarHandle(VarForm form, boolean be, boolean exact)

Method Summary

Inherited from java.lang.invoke.VarHandle:
accessModeTypeaccessModeTypeaccessModeTypeUncachedaccessModeTypeUncachedacquireFenceasDirectcheckAccessModeThenIsDirectcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetcoordinateTypesdescribeConstablefullFencegetgetAcquiregetAndAddgetAndAddAcquiregetAndAddReleasegetAndBitwiseAndgetAndBitwiseAndAcquiregetAndBitwiseAndReleasegetAndBitwiseOrgetAndBitwiseOrAcquiregetAndBitwiseOrReleasegetAndBitwiseXorgetAndBitwiseXorAcquiregetAndBitwiseXorReleasegetAndSetgetAndSetAcquiregetAndSetReleasegetMethodHandlegetMethodHandleUncachedgetOpaquegetVolatilehasInvokeExactBehaviorisAccessModeSupportedloadLoadFencereleaseFencesetsetOpaquesetReleasesetVolatilestoreStoreFencetargettoMethodHandletoStringupdateVarFormvarTypeweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleasewithInvokeBehaviorwithInvokeExactBehavior

Field Detail

beback to summary
pack-priv final boolean be

Constructor Detail

ByteArrayViewVarHandleback to summary
pack-priv ByteArrayViewVarHandle(VarForm form, boolean be, boolean exact)
java.lang.invoke back to summary

pack-priv final Class VarHandleByteArrayAsFloats.ByteBufferHandle

extends ByteArrayViewVarHandle
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final VarForm
Inherited from java.lang.invoke.VarHandleByteArrayAsFloats.ByteArrayViewVarHandle:
be

Constructor Summary

AccessConstructor and Description
pack-priv
ByteBufferHandle(boolean be)

private
ByteBufferHandle(boolean be, boolean exact)

Method Summary

Modifier and TypeMethod and Description
pack-priv final MethodType
pack-priv static long
address(ByteBuffer bb, int index)

pack-priv static Object
pack-priv static float
compareAndExchange(VarHandle ob, Object obb, int index, float expected, float value)

pack-priv static float
compareAndExchangeAcquire(VarHandle ob, Object obb, int index, float expected, float value)

pack-priv static float
compareAndExchangeRelease(VarHandle ob, Object obb, int index, float expected, float value)

pack-priv static boolean
compareAndSet(VarHandle ob, Object obb, int index, float expected, float value)

pack-priv static float
get(VarHandle ob, Object obb, int index)

pack-priv static float
getAcquire(VarHandle ob, Object obb, int index)

pack-priv static float
getAndSet(VarHandle ob, Object obb, int index, float value)

pack-priv static float
getAndSetAcquire(VarHandle ob, Object obb, int index, float value)

pack-priv static float
getAndSetRelease(VarHandle ob, Object obb, int index, float value)

pack-priv static float
getOpaque(VarHandle ob, Object obb, int index)

pack-priv static float
getVolatile(VarHandle ob, Object obb, int index)

pack-priv static int
index(ByteBuffer bb, int index)

pack-priv static int
indexRO(ByteBuffer bb, int index)

pack-priv static MemorySessionImpl
pack-priv static void
set(VarHandle ob, Object obb, int index, float value)

pack-priv static void
setOpaque(VarHandle ob, Object obb, int index, float value)

pack-priv static void
setRelease(VarHandle ob, Object obb, int index, float value)

pack-priv static void
setVolatile(VarHandle ob, Object obb, int index, float value)

pack-priv static boolean
weakCompareAndSet(VarHandle ob, Object obb, int index, float expected, float value)

pack-priv static boolean
weakCompareAndSetAcquire(VarHandle ob, Object obb, int index, float expected, float value)

pack-priv static boolean
weakCompareAndSetPlain(VarHandle ob, Object obb, int index, float expected, float value)

pack-priv static boolean
weakCompareAndSetRelease(VarHandle ob, Object obb, int index, float expected, float value)

public VarHandleByteArrayAsFloats.ByteBufferHandle
withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

public VarHandleByteArrayAsFloats.ByteBufferHandle
withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

Field Detail

FORMback to summary
pack-priv static final VarForm FORM

Constructor Detail

ByteBufferHandleback to summary
pack-priv ByteBufferHandle(boolean be)
ByteBufferHandleback to summary
private ByteBufferHandle(boolean be, boolean exact)

Method Detail

accessModeTypeUncachedback to summary
pack-priv final MethodType accessModeTypeUncached(VarHandle.AccessType at)

Implements abstract java.lang.invoke.VarHandle.accessModeTypeUncached.

Annotations
@Override
addressback to summary
pack-priv static long address(ByteBuffer bb, int index)
Annotations
@ForceInline
checkNullHeapBaseback to summary
pack-priv static Object checkNullHeapBase(Object hb)
Annotations
@ForceInline
compareAndExchangeback to summary
pack-priv static float compareAndExchange(VarHandle ob, Object obb, int index, float expected, float value)
Annotations
@ForceInline
compareAndExchangeAcquireback to summary
pack-priv static float compareAndExchangeAcquire(VarHandle ob, Object obb, int index, float expected, float value)
Annotations
@ForceInline
compareAndExchangeReleaseback to summary
pack-priv static float compareAndExchangeRelease(VarHandle ob, Object obb, int index, float expected, float value)
Annotations
@ForceInline
compareAndSetback to summary
pack-priv static boolean compareAndSet(VarHandle ob, Object obb, int index, float expected, float value)
Annotations
@ForceInline
getback to summary
pack-priv static float get(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getAcquireback to summary
pack-priv static float getAcquire(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getAndSetback to summary
pack-priv static float getAndSet(VarHandle ob, Object obb, int index, float value)
Annotations
@ForceInline
getAndSetAcquireback to summary
pack-priv static float getAndSetAcquire(VarHandle ob, Object obb, int index, float value)
Annotations
@ForceInline
getAndSetReleaseback to summary
pack-priv static float getAndSetRelease(VarHandle ob, Object obb, int index, float value)
Annotations
@ForceInline
getOpaqueback to summary
pack-priv static float getOpaque(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getVolatileback to summary
pack-priv static float getVolatile(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
indexback to summary
pack-priv static int index(ByteBuffer bb, int index)
Annotations
@ForceInline
indexROback to summary
pack-priv static int indexRO(ByteBuffer bb, int index)
Annotations
@ForceInline
sessionback to summary
pack-priv static MemorySessionImpl session(ByteBuffer bb)
Annotations
@ForceInline
setback to summary
pack-priv static void set(VarHandle ob, Object obb, int index, float value)
Annotations
@ForceInline
setOpaqueback to summary
pack-priv static void setOpaque(VarHandle ob, Object obb, int index, float value)
Annotations
@ForceInline
setReleaseback to summary
pack-priv static void setRelease(VarHandle ob, Object obb, int index, float value)
Annotations
@ForceInline
setVolatileback to summary
pack-priv static void setVolatile(VarHandle ob, Object obb, int index, float value)
Annotations
@ForceInline
weakCompareAndSetback to summary
pack-priv static boolean weakCompareAndSet(VarHandle ob, Object obb, int index, float expected, float value)
Annotations
@ForceInline
weakCompareAndSetAcquireback to summary
pack-priv static boolean weakCompareAndSetAcquire(VarHandle ob, Object obb, int index, float expected, float value)
Annotations
@ForceInline
weakCompareAndSetPlainback to summary
pack-priv static boolean weakCompareAndSetPlain(VarHandle ob, Object obb, int index, float expected, float value)
Annotations
@ForceInline
weakCompareAndSetReleaseback to summary
pack-priv static boolean weakCompareAndSetRelease(VarHandle ob, Object obb, int index, float expected, float value)
Annotations
@ForceInline
withInvokeBehaviorback to summary
public VarHandleByteArrayAsFloats.ByteBufferHandle withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

If this VarHandle already has invoke behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return false.

Annotations
@Override
withInvokeExactBehaviorback to summary
public VarHandleByteArrayAsFloats.ByteBufferHandle withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

If this VarHandle already has invoke-exact behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return true.

Annotations
@Override