Java ByteBuffer to Int Array readIntegerArray(ByteBuffer bb, int length)

Here you can find the source of readIntegerArray(ByteBuffer bb, int length)

Description

read Integer Array

License

Open Source License

Declaration

public static int[] readIntegerArray(ByteBuffer bb, int length) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.nio.ByteBuffer;

public class Main {
    public static int[] readIntegerArray(ByteBuffer bb, int length) {
        int[] a = new int[length];
        for (int i = 0; i < length; i++) {
            a[i] = bb.getInt();/*w  w w . j  a  v  a 2 s.c  om*/
        }
        return a;
    }
}

Related

  1. getIntFromByteBuffer(ByteBuffer data)
  2. getIntWithChecksum(ByteBuffer buffer, Adler32 checksum)
  3. readIntArray(ByteBuffer bb)
  4. readIntArray(ByteBuffer buf)
  5. readIntArray(ByteBuffer in)