Java ByteBuffer to Int readInt32(ByteBuffer bb)

Here you can find the source of readInt32(ByteBuffer bb)

Description

Read an 32-bit signed integer from the byte buffer.

License

LGPL

Parameter

Parameter Description
bb The byte buffer.

Return

The value.

Declaration

public static int readInt32(ByteBuffer bb) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    /**/* w w w.ja v a  2s  . com*/
     * Read an 32-bit signed integer from the byte buffer.
     * 
     * @param bb The byte buffer.
     * @return The value.
     */
    public static int readInt32(ByteBuffer bb) {
        return bb.getInt();
    }
}

Related

  1. readInt(ByteBuffer buf, int pos)
  2. readInt(ByteBuffer buffer)
  3. readInt(ByteBuffer buffer)
  4. readInt(ReadableByteChannel channel, ByteBuffer buffer)
  5. readInt16(ByteBuffer bb)
  6. readInt8(final ByteBuffer buffer)
  7. readIntEquals(ByteBuffer buf, int i, int j)
  8. readIntLE(ByteBuffer buf, int i)
  9. readIntMSB(ByteBuffer logBuf)