Java ByteBuffer Get getFixedBytes(ByteBuffer buffer, int length)

Here you can find the source of getFixedBytes(ByteBuffer buffer, int length)

Description

get Fixed Bytes

License

Apache License

Declaration

public static byte[] getFixedBytes(ByteBuffer buffer, int length) 

Method Source Code


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

import java.nio.ByteBuffer;

public class Main {
    public static byte[] getFixedBytes(ByteBuffer buffer, int length) {
        byte[] result = new byte[length];
        buffer.get(result);/*  w  w w .j  a  va  2 s.  com*/
        return result;
    }
}

Related

  1. getDirectByteBuffer(ByteBuffer var0, boolean var1)
  2. getDouble(ByteBuffer buffer)
  3. getDoubleArray(ByteBuffer buffer, int numDoubles)
  4. getDoubleFromByteBuffer(ByteBuffer data)
  5. getEmptyByteBuffer()
  6. getFloat(ByteBuffer b, int n)
  7. getFloat(ByteBuffer buffer)
  8. getFloat(ByteBuffer floatCalculator, byte[] bytes)
  9. getFromBack(ByteBuffer bb)