本文整理了Java中sun.misc.Unsafe.putFloatVolatile()
方法的一些代码示例,展示了Unsafe.putFloatVolatile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Unsafe.putFloatVolatile()
方法的具体详情如下:
包路径:sun.misc.Unsafe
类名称:Unsafe
方法名:putFloatVolatile
[英]Volatile version of #putFloat(Object,long,float)
[中]#putFloat的易失性版本(对象,长,浮点)
代码示例来源:origin: redisson/redisson
@Override
public void putFloatVolatile(long byteIndex, float f) {
unsafe.putFloatVolatile(base, off + byteIndex, f);
}
代码示例来源:origin: redisson/redisson
@Override
public void putFloatVolatile(long byteIndex, float f) {
unsafe.putFloatVolatile(null, baseAdress + byteIndex, f);
}
代码示例来源:origin: neo4j/neo4j
public static void putFloatVolatile( Object obj, long offset, float value )
{
unsafe.putFloatVolatile( obj, offset, value );
}
代码示例来源:origin: RuedigerMoeller/fast-serialization
@Override
public void putFloatVolatile(long byteIndex, float f) {
unsafe.putFloatVolatile(null, baseAdress + byteIndex, f);
}
代码示例来源:origin: fengjiachun/Jupiter
public void putFloatVolatile(Object target, long offset, float value) {
unsafe.putFloatVolatile(target, offset, value);
}
代码示例来源:origin: RuedigerMoeller/fast-serialization
@Override
public void putFloatVolatile(long byteIndex, float f) {
unsafe.putFloatVolatile(base, off + byteIndex, f);
}
代码示例来源:origin: fengjiachun/Jupiter
public void putFloatVolatile(Object target, long offset, float value) {
unsafe.putFloatVolatile(target, offset, value);
}
代码示例来源:origin: neo4j/neo4j
public static void putFloatVolatile( long address, float value )
{
checkAccess( address, Float.BYTES );
unsafe.putFloatVolatile( null, address, value );
}
代码示例来源:origin: aaberg/sql2o
public void setProperty(Object obj, Object value) {
if (value == null) return;
theUnsafe.putFloatVolatile(obj, offset, ((Number) value).floatValue());
}
代码示例来源:origin: boonproject/boon
@Override
public void setFloat( Object obj, float value ) {
unsafe.putFloatVolatile( obj, offset, value );
}
代码示例来源:origin: boonproject/boon
@Override
public void setFloat( Object obj, float value ) {
unsafe.putFloatVolatile( obj, offset, value );
}
代码示例来源:origin: org.neo4j/neo4j-unsafe
public static void putFloatVolatile( Object obj, long offset, float value )
{
unsafe.putFloatVolatile( obj, offset, value );
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Override
public void putFloatVolatile(long address, float x) {
UNSAFE.putFloatVolatile(null, address, x);
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public void putFloatVolatile(long address, float x) {
UNSAFE.putFloatVolatile(null, address, x);
}
代码示例来源:origin: net.openhft/chronicle-core
@Override
@ForceInline
public void writeVolatileFloat(long address, float f) {
// assert (address & 0x3) == 0;
UNSAFE.putFloatVolatile(null, address, f);
}
代码示例来源:origin: net.openhft/chronicle-core
@Override
@ForceInline
public void writeVolatileFloat(@NotNull Object object, long offset, float f) {
if (object == null)
throw new NullPointerException();
UNSAFE.putFloatVolatile(object, offset, f);
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Override
public void putFloatVolatile(long address, float x) {
AlignmentUtil.check4BytesAligned(address);
UNSAFE.putFloatVolatile(null, address, x);
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Override
public void putFloatVolatile(Object base, long offset, float x) {
AlignmentUtil.check4BytesAligned(offset);
UNSAFE.putFloatVolatile(base, offset, x);
}
代码示例来源:origin: org.neo4j/neo4j-unsafe
public static void putFloatVolatile( long address, float value )
{
checkAccess( address, Float.BYTES );
unsafe.putFloatVolatile( null, address, value );
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public void putFloatVolatile(Object base, long offset, float x) {
AlignmentUtil.check4BytesAligned(offset);
UNSAFE.putFloatVolatile(base, offset, x);
}
内容来源于网络,如有侵权,请联系作者删除!