Java io.netty.util.internal PlatformDependent fields, constructors, methods, implement or subclass

Example usage for Java io.netty.util.internal PlatformDependent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.util.internal PlatformDependent.

The text is from its open source code.

Field

Method

voidcopyMemory(long srcAddr, long dstAddr, long length)
voidcopyMemory(byte[] src, int srcIndex, long dstAddr, long length)
voidcopyMemory(long srcAddr, byte[] dst, int dstIndex, long length)
longdirectBufferAddress(ByteBuffer buffer)
booleandirectBufferPreferred()
Returns true if the platform has reliable low-level direct buffer access API and a user has not specified -Dio.netty.noPreferDirect option.
booleanequals(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length)
Compare two byte arrays for equality.
intequalsConstantTime(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length)
Compare two byte arrays for equality without leaking timing information.
voidfreeDirectBuffer(ByteBuffer buffer)
Try to deallocate the specified direct ByteBuffer .
bytegetByte(byte[] data, int index)
bytegetByte(long address)
ClassLoadergetClassLoader(final Class clazz)
Return the ClassLoader for the given Class .
intgetInt(Object object, long fieldOffset)
intgetInt(byte[] data, int index)
intgetInt(long address)
longgetLong(byte[] data, int index)
longgetLong(long address)
shortgetShort(byte[] data, int index)
shortgetShort(long address)
booleanhasUnsafe()
Return true if sun.misc.Unsafe was found on the classpath and can be used for accelerated direct memory access.
booleanisAndroid()
Returns true if and only if the current platform is Android
booleanisUnaligned()
true if and only if the platform supports unaligned access.
booleanisWindows()
Return true if the JVM is running on Windows
booleanisZero(byte[] bytes, int startPos, int length)
Determine if a subsection of an array is zero.
intjavaVersion()
Return the version of Java under which this library is used.
longmaxDirectMemory()
Returns the maximum memory reserved for direct buffer allocation.
ConcurrentMapnewConcurrentHashMap()
Creates a new fastest ConcurrentMap implementation for the current platform.
QueuenewFixedMpscQueue(int capacity)
Create a new Queue which is safe to use for multiple producers (different threads) and a single consumer (one thread!) with the given fixes capacity .
QueuenewMpscQueue()
Create a new Queue which is safe to use for multiple producers (different threads) and a single consumer (one thread!).
voidputByte(long address, byte value)
voidputByte(byte[] data, int index, byte value)
voidputInt(byte[] data, int index, int value)
voidputInt(long address, int value)
voidputLong(byte[] data, int index, long value)
voidputLong(long address, long value)
voidputShort(long address, short value)
voidsetMemory(long address, long bytes, byte value)
RandomthreadLocalRandom()
Return a Random which is not-threadsafe and so can only be used from the same thread.
voidthrowException(Throwable t)
Raises an exception bypassing compiler checks for checked exceptions.