Top Fields Constructors Methods
java.lang.invoke

pack-priv final Class VarHandleSegmentAsBytes

extends VarHandleSegmentViewBase
Class Inheritance
Imports
jdk.internal.foreign.AbstractMemorySegmentImpl, jdk.internal.misc.ScopedMemoryAccess, jdk.internal.vm.annotation.ForceInline, java.lang.foreign.MemorySegment, java.lang.ref.Reference, java.util.Objects

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean
pack-priv static final VarForm
pack-priv static final int
pack-priv static final ScopedMemoryAccess
Inherited from java.lang.invoke.VarHandleSegmentViewBase:
alignmentMaskbe

Constructor Summary

AccessConstructor and Description
pack-priv
VarHandleSegmentAsBytes(boolean be, long alignmentMask, boolean exact)

Method Summary

Modifier and TypeMethod and Description
pack-priv final MethodType
pack-priv static AbstractMemorySegmentImpl
checkReadOnly(Object obb, boolean ro)

pack-priv static byte
convEndian(boolean big, byte n)

pack-priv static byte
get(VarHandle ob, Object obb, long base)

pack-priv static byte
getAcquire(VarHandle ob, Object obb, long base)

pack-priv static byte
getOpaque(VarHandle ob, Object obb, long base)

pack-priv static byte
getVolatile(VarHandle ob, Object obb, long base)

pack-priv static long
offsetNonPlain(AbstractMemorySegmentImpl bb, long offset, long alignmentMask)

pack-priv static long
pack-priv static void
set(VarHandle ob, Object obb, long base, byte value)

pack-priv static void
setOpaque(VarHandle ob, Object obb, long base, byte value)

pack-priv static void
setRelease(VarHandle ob, Object obb, long base, byte value)

pack-priv static void
setVolatile(VarHandle ob, Object obb, long base, byte value)

public VarHandleSegmentAsBytes
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 VarHandleSegmentAsBytes
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.

Inherited from java.lang.invoke.VarHandleSegmentViewBase:
newUnsupportedAccessModeForAlignment

Field Detail

BEback to summary
pack-priv static final boolean BE
FORMback to summary
pack-priv static final VarForm FORM
NON_PLAIN_ACCESS_MIN_ALIGN_MASKback to summary
pack-priv static final int NON_PLAIN_ACCESS_MIN_ALIGN_MASK
SCOPED_MEMORY_ACCESSback to summary
pack-priv static final ScopedMemoryAccess SCOPED_MEMORY_ACCESS

Constructor Detail

VarHandleSegmentAsBytesback to summary
pack-priv VarHandleSegmentAsBytes(boolean be, long alignmentMask, boolean exact)

Method Detail

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

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

Annotations
@Override
checkReadOnlyback to summary
pack-priv static AbstractMemorySegmentImpl checkReadOnly(Object obb, boolean ro)
Annotations
@ForceInline
convEndianback to summary
pack-priv static byte convEndian(boolean big, byte n)
Annotations
@ForceInline
getback to summary
pack-priv static byte get(VarHandle ob, Object obb, long base)
Annotations
@ForceInline
getAcquireback to summary
pack-priv static byte getAcquire(VarHandle ob, Object obb, long base)
Annotations
@ForceInline
getOpaqueback to summary
pack-priv static byte getOpaque(VarHandle ob, Object obb, long base)
Annotations
@ForceInline
getVolatileback to summary
pack-priv static byte getVolatile(VarHandle ob, Object obb, long base)
Annotations
@ForceInline
offsetNonPlainback to summary
pack-priv static long offsetNonPlain(AbstractMemorySegmentImpl bb, long offset, long alignmentMask)
Annotations
@ForceInline
offsetPlainback to summary
pack-priv static long offsetPlain(AbstractMemorySegmentImpl bb, long offset)
Annotations
@ForceInline
setback to summary
pack-priv static void set(VarHandle ob, Object obb, long base, byte value)
Annotations
@ForceInline
setOpaqueback to summary
pack-priv static void setOpaque(VarHandle ob, Object obb, long base, byte value)
Annotations
@ForceInline
setReleaseback to summary
pack-priv static void setRelease(VarHandle ob, Object obb, long base, byte value)
Annotations
@ForceInline
setVolatileback to summary
pack-priv static void setVolatile(VarHandle ob, Object obb, long base, byte value)
Annotations
@ForceInline
withInvokeBehaviorback to summary
public VarHandleSegmentAsBytes 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.

Returns:VarHandleSegmentAsBytes

a VarHandle with invoke behavior

Annotations
@Override
withInvokeExactBehaviorback to summary
public VarHandleSegmentAsBytes 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.

Returns:VarHandleSegmentAsBytes

a VarHandle with invoke-exact behavior

Annotations
@Override