IT. Expert System.

Android Reference

NioUtils


java.nio

Class NioUtils



  • public final class NioUtils
    extends Object
    • Method Detail

      • getDirectBufferAddress

        public static int getDirectBufferAddress(Buffer buffer)
        Gets the start address of a direct buffer.

        This method corresponds to the JNI function:

            void* GetDirectBufferAddress(JNIEnv* env, jobject buf);
         
        Parameters:
        buf - the direct buffer whose address shall be returned must not be null.
        Returns:
        the address of the buffer given, or zero if the buffer is not a direct Buffer.
      • freeDirectBuffer

        public static void freeDirectBuffer(ByteBuffer buffer)
      • getFD

        public static FileDescriptor getFD(FileChannel fc)
        Returns the int file descriptor from within the given FileChannel 'fc'.
      • unsafeArray

        public static byte[] unsafeArray(ByteBuffer b)
        Exposes the array backing a non-direct ByteBuffer, even if the ByteBuffer is read-only. Normally, attempting to access the array backing a read-only buffer throws.
      • unsafeArrayOffset

        public static int unsafeArrayOffset(ByteBuffer b)
        Exposes the array offset for the array backing a non-direct ByteBuffer, even if the ByteBuffer is read-only.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1751 / . Delta: 0.02130 с