Java ByteBuffer Set readKey(ByteBuffer index, int indexByteOffset, byte[] foundKey)

Here you can find the source of readKey(ByteBuffer index, int indexByteOffset, byte[] foundKey)

Description

read Key

License

Apache License

Declaration

public static byte[] readKey(ByteBuffer index, int indexByteOffset,
            byte[] foundKey) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.nio.ByteBuffer;

public class Main {
    public static byte[] readKey(ByteBuffer index, int indexByteOffset,
            byte[] foundKey) {
        index.position(indexByteOffset);
        index.get(foundKey);//from  w  w  w. j  av a2 s  .  c o m
        return foundKey;
    }
}

Related

  1. pourBufferToArray(ByteBuffer source, byte[] destination, int offset, int sizeRequested)
  2. readBitset(ByteBuffer bb, int numbytes)
  3. readBitSet(ByteBuffer buf, int len)
  4. readBlock(ByteBuffer buffer, String fileName, long startOffset, Logger log)
  5. readFromChannel(FileChannel fc, ByteBuffer buffer, int bufferOffset, int num)
  6. readPackageName(ByteBuffer buffer, int offset)
  7. redByteArray(ByteBuffer buffer, int offset, int length)
  8. redInteger1(ByteBuffer buffer, int _offset)
  9. redString(ByteBuffer buffer, int offset, Charset charset)