本文整理了Java中sun.misc.Unsafe.putCharVolatile()
方法的一些代码示例,展示了Unsafe.putCharVolatile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Unsafe.putCharVolatile()
方法的具体详情如下:
包路径:sun.misc.Unsafe
类名称:Unsafe
方法名:putCharVolatile
[英]Volatile version of #putChar(Object,long,char)
[中]#putChar的易失性版本(Object,long,char)
代码示例来源:origin: redisson/redisson
@Override
public void putCharVolatile(long byteIndex, char c) {
unsafe.putCharVolatile(base, off + byteIndex, c);
}
代码示例来源:origin: redisson/redisson
@Override
public void putCharVolatile(long byteIndex, char c) {
unsafe.putCharVolatile(null, baseAdress + byteIndex, c);
}
代码示例来源:origin: neo4j/neo4j
public static void putCharVolatile( Object obj, long offset, char value )
{
unsafe.putCharVolatile( obj, offset, value );
}
代码示例来源:origin: RuedigerMoeller/fast-serialization
@Override
public void putCharVolatile(long byteIndex, char c) {
unsafe.putCharVolatile(base, off + byteIndex, c);
}
代码示例来源:origin: RuedigerMoeller/fast-serialization
@Override
public void putCharVolatile(long byteIndex, char c) {
unsafe.putCharVolatile(null, baseAdress + byteIndex, c);
}
代码示例来源:origin: neo4j/neo4j
public static void putCharVolatile( long address, char value )
{
checkAccess( address, Character.BYTES );
unsafe.putCharVolatile( null, address, value );
}
代码示例来源:origin: real-logic/agrona
public void putCharVolatile(final int index, final char value)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, SIZE_OF_CHAR);
}
UNSAFE.putCharVolatile(byteArray, addressOffset + index, value);
}
代码示例来源:origin: real-logic/agrona
public void putCharVolatile(final long index, final char value)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, SIZE_OF_CHAR);
}
UNSAFE.putCharVolatile(null, addressOffset + index, value);
}
代码示例来源:origin: aaberg/sql2o
public void setProperty(Object obj, Object value) {
if (value == null) return;
theUnsafe.putCharVolatile(obj, offset, (Character) value);
}
代码示例来源:origin: boonproject/boon
@Override
public void setChar( Object obj, char value ) {
unsafe.putCharVolatile( obj, offset, value );
}
代码示例来源:origin: boonproject/boon
@Override
public void setChar( Object obj, char value ) {
unsafe.putCharVolatile( obj, offset, value );
}
代码示例来源:origin: org.agrona/agrona
public void putCharVolatile(final int index, final char value)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, SIZE_OF_CHAR);
}
UNSAFE.putCharVolatile(byteArray, addressOffset + index, value);
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public void putCharVolatile(long address, char x) {
AlignmentUtil.check2BytesAligned(address);
UNSAFE.putCharVolatile(null, address, x);
}
代码示例来源:origin: uk.co.real-logic/Agrona
public void putCharVolatile(final int index, final char value)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, SIZE_OF_CHAR);
}
UNSAFE.putCharVolatile(byteArray, addressOffset + index, value);
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Override
public void putCharVolatile(long address, char x) {
AlignmentUtil.check2BytesAligned(address);
UNSAFE.putCharVolatile(null, address, x);
}
代码示例来源:origin: org.agrona/agrona
public void putCharVolatile(final long index, final char value)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, SIZE_OF_CHAR);
}
UNSAFE.putCharVolatile(null, addressOffset + index, value);
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public void putCharVolatile(Object base, long offset, char x) {
AlignmentUtil.check2BytesAligned(offset);
UNSAFE.putCharVolatile(base, offset, x);
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Override
public void putCharVolatile(Object base, long offset, char x) {
AlignmentUtil.check2BytesAligned(offset);
UNSAFE.putCharVolatile(base, offset, x);
}
代码示例来源:origin: org.agrona/Agrona
public void putCharVolatile(final int index, final char value)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, SIZE_OF_CHAR);
}
UNSAFE.putCharVolatile(byteArray, addressOffset + index, value);
}
代码示例来源:origin: uk.co.real-logic/Agrona
public void putCharVolatile(final long index, final char value)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, SIZE_OF_CHAR);
}
UNSAFE.putCharVolatile(null, addressOffset + index, value);
}
内容来源于网络,如有侵权,请联系作者删除!