test_class.declarator: random
test_class.original_string: Random random;
test_class.type: Random
test_class.var_name: random
test_class.declarator: buffer = new DirectByteBuffer(1024 * 1024 * 10)
test_class.original_string: DirectByteBuffer buffer = new DirectByteBuffer(1024 * 1024 * 10);
test_class.type: DirectByteBuffer
test_class.var_name: buffer
test_class.file: imcache-offheap/src/test/java/com/cetsoft/imcache/offheap/bytebuffer/DirectByteBufferTest.java
test_class.identifier: DirectByteBufferTest
test_case.body: @Test
    public void put() {
      int size = 100;
      byte[] expectedBytes = new byte[size];
      random.nextBytes(expectedBytes);
      buffer.put(0, expectedBytes, 0, expectedBytes.length);
      byte[] actualBytes = new byte[size];
      buffer.get(0, actualBytes, 0, actualBytes.length);
      assertArrayEquals(expectedBytes, actualBytes);
    }
test_case.class_method_signature: DirectByteBufferTest.put()
test_case.full_signature: @Test public void put()
test_case.identifier: put
test_case.invocations: nextBytes put get assertArrayEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void put()
focal_class.declarator: UNSAFE = getUnsafe()
focal_class.modifier: private static final
focal_class.original_string: private static final sun.misc.Unsafe UNSAFE = getUnsafe();
focal_class.type: sun.misc.Unsafe
focal_class.var_name: UNSAFE
focal_class.declarator: UNSAFE_COPY_THRESHOLD = 1024L * 1024L
focal_class.modifier: private static final
focal_class.original_string: private static final long UNSAFE_COPY_THRESHOLD = 1024L * 1024L;
focal_class.type: long
focal_class.var_name: UNSAFE_COPY_THRESHOLD
focal_class.declarator: ARRAY_BASE_OFFSET = (long) UNSAFE.arrayBaseOffset(byte[].class)
focal_class.modifier: private static final
focal_class.original_string: private static final long ARRAY_BASE_OFFSET = (long) UNSAFE.arrayBaseOffset(byte[].class);
focal_class.type: long
focal_class.var_name: ARRAY_BASE_OFFSET
focal_class.declarator: address
focal_class.modifier: private
focal_class.original_string: private long address;
focal_class.type: long
focal_class.var_name: address
focal_class.declarator: byteBuffer
focal_class.modifier: private
focal_class.original_string: private java.nio.ByteBuffer byteBuffer;
focal_class.type: java.nio.ByteBuffer
focal_class.var_name: byteBuffer
focal_class.file: imcache-offheap/src/main/java/com/cetsoft/imcache/offheap/bytebuffer/DirectByteBuffer.java
focal_class.identifier: DirectByteBuffer
focal_class.interfaces: implements ByteBuffer
focal_class.class_method_signature: DirectByteBuffer.DirectByteBuffer(final int capacity)
focal_class.full_signature: public  DirectByteBuffer(final int capacity)
focal_class.identifier: DirectByteBuffer
focal_class.modifiers: public
focal_class.parameters: (final int capacity)
focal_class.signature:  DirectByteBuffer(final int capacity)
focal_class.class_method_signature: DirectByteBuffer.copyToArray(long sourceAddress, Object destination,
        long destinationBaseOffset,
        long destinationPosition, long length)
focal_class.full_signature: private static void copyToArray(long sourceAddress, Object destination,
        long destinationBaseOffset,
        long destinationPosition, long length)
focal_class.identifier: copyToArray
focal_class.modifiers: private static
focal_class.parameters: (long sourceAddress, Object destination,
        long destinationBaseOffset,
        long destinationPosition, long length)
focal_class.return: void
focal_class.signature: void copyToArray(long sourceAddress, Object destination,
        long destinationBaseOffset,
        long destinationPosition, long length)
focal_class.class_method_signature: DirectByteBuffer.copyFromArray(Object source, long sourceBaseOffset, long sourcePosition,
        long destinationAddress, long length)
focal_class.full_signature: private static void copyFromArray(Object source, long sourceBaseOffset, long sourcePosition,
        long destinationAddress, long length)
focal_class.identifier: copyFromArray
focal_class.modifiers: private static
focal_class.parameters: (Object source, long sourceBaseOffset, long sourcePosition,
        long destinationAddress, long length)
focal_class.return: void
focal_class.signature: void copyFromArray(Object source, long sourceBaseOffset, long sourcePosition,
        long destinationAddress, long length)
focal_class.class_method_signature: DirectByteBuffer.getUnsafe()
focal_class.full_signature: public static sun.misc.Unsafe getUnsafe()
focal_class.identifier: getUnsafe
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: sun.misc.Unsafe
focal_class.signature: sun.misc.Unsafe getUnsafe()
focal_class.class_method_signature: DirectByteBuffer.get(int position, byte[] destination, int offset, int length)
focal_class.full_signature: public void get(int position, byte[] destination, int offset, int length)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (int position, byte[] destination, int offset, int length)
focal_class.return: void
focal_class.signature: void get(int position, byte[] destination, int offset, int length)
focal_class.class_method_signature: DirectByteBuffer.put(int position, byte[] source, int offset, int length)
focal_class.full_signature: public void put(int position, byte[] source, int offset, int length)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (int position, byte[] source, int offset, int length)
focal_class.return: void
focal_class.signature: void put(int position, byte[] source, int offset, int length)
focal_class.class_method_signature: DirectByteBuffer.getPosition(int position)
focal_class.full_signature: private long getPosition(int position)
focal_class.identifier: getPosition
focal_class.modifiers: private
focal_class.parameters: (int position)
focal_class.return: long
focal_class.signature: long getPosition(int position)
focal_class.class_method_signature: DirectByteBuffer.free()
focal_class.full_signature: public void free()
focal_class.identifier: free
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void free()
focal_method.body: public void put(int position, byte[] source, int offset, int length) {
      copyFromArray(source, ARRAY_BASE_OFFSET, offset, getPosition(position), length);
    }
focal_method.class_method_signature: DirectByteBuffer.put(int position, byte[] source, int offset, int length)
focal_method.full_signature: public void put(int position, byte[] source, int offset, int length)
focal_method.identifier: put
focal_method.invocations: copyFromArray getPosition
focal_method.modifiers: public
focal_method.parameters: (int position, byte[] source, int offset, int length)
focal_method.return: void
focal_method.signature: void put(int position, byte[] source, int offset, int length)