本文整理了Java中sun.misc.Unsafe.getByteVolatile()
方法的一些代码示例,展示了Unsafe.getByteVolatile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Unsafe.getByteVolatile()
方法的具体详情如下:
包路径:sun.misc.Unsafe
类名称:Unsafe
方法名:getByteVolatile
[英]Volatile version of #getByte(Object,long)
[中]#getByte(对象,长)的易失性版本
代码示例来源:origin: redisson/redisson
@Override
public byte getVolatile(long byteIndex) {
return unsafe.getByteVolatile(null, baseAdress + byteIndex); // FIXME: what to do here ?
}
代码示例来源:origin: redisson/redisson
@Override
public byte getVolatile(long byteIndex) {
return unsafe.getByteVolatile(base, off + byteIndex);
}
代码示例来源:origin: neo4j/neo4j
public static byte getByteVolatile( Object obj, long offset )
{
return unsafe.getByteVolatile( obj, offset );
}
代码示例来源:origin: apache/ignite
/**
* Gets byte value with volatile semantic.
*
* @param obj Object.
* @param off Offset.
* @return Byte value.
*/
public static byte getByteVolatile(Object obj, long off) {
return UNSAFE.getByteVolatile(obj, off);
}
代码示例来源:origin: RuedigerMoeller/fast-serialization
@Override
public byte getVolatile(long byteIndex) {
return unsafe.getByteVolatile(null, baseAdress + byteIndex); // FIXME: what to do here ?
}
代码示例来源:origin: RuedigerMoeller/fast-serialization
@Override
public byte getVolatile(long byteIndex) {
return unsafe.getByteVolatile(base, off + byteIndex);
}
代码示例来源:origin: fengjiachun/Jupiter
public byte getByteVolatile(Object target, long offset) {
return unsafe.getByteVolatile(target, offset);
}
代码示例来源:origin: fengjiachun/Jupiter
public byte getByteVolatile(Object target, long offset) {
return unsafe.getByteVolatile(target, offset);
}
代码示例来源:origin: neo4j/neo4j
public static byte getByteVolatile( long address )
{
checkAccess( address, Byte.BYTES );
return unsafe.getByteVolatile( null, address );
}
代码示例来源:origin: real-logic/agrona
public byte getByteVolatile(final long index)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck(index);
}
return UNSAFE.getByteVolatile(null, addressOffset + index);
}
代码示例来源:origin: real-logic/agrona
public byte getByteVolatile(final int index)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck(index);
}
return UNSAFE.getByteVolatile(byteArray, addressOffset + index);
}
代码示例来源:origin: aaberg/sql2o
public Object getProperty(Object obj) {
return theUnsafe.getByteVolatile(obj, offset);
}
代码示例来源:origin: boonproject/boon
@Override
public byte getByte( Object obj ) {
return unsafe.getByteVolatile( obj, offset );
}
}
代码示例来源:origin: org.apache.ignite/ignite-core
/**
* Gets byte value with volatile semantic.
*
* @param obj Object.
* @param off Offset.
* @return Byte value.
*/
public static byte getByteVolatile(Object obj, long off) {
return UNSAFE.getByteVolatile(obj, off);
}
代码示例来源:origin: boonproject/boon
@Override
public byte getByte( Object obj ) {
return unsafe.getByteVolatile( obj, offset );
}
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
@Override
public byte getByte( Object obj ) {
return unsafe.getByteVolatile( obj, offset );
}
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public byte getByteVolatile(long address) {
return UNSAFE.getByteVolatile(null, address);
}
代码示例来源:origin: MyCATApache/Mycat-JCache
/**
* Reads a byte (volatile) from the specified position.
*
* @param pos
* the position in the memory addrress
* @return the value read
*/
public static byte getByteVolatile(long pos) {
return unsafe.getByteVolatile(null, pos );
}
代码示例来源:origin: io.fastjson/boon
@Override
public byte getByte( Object obj ) {
return unsafe.getByteVolatile( obj, offset );
}
}
代码示例来源:origin: org.agrona/agrona
public byte getByteVolatile(final long index)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck(index);
}
return UNSAFE.getByteVolatile(null, addressOffset + index);
}
内容来源于网络,如有侵权,请联系作者删除!