Java ByteBuffer to Long readUInt8(ByteBuffer bb)

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

Description

Read an 8-bit unsigned integer from the byte buffer.

License

LGPL

Parameter

Parameter Description
bb The byte buffer.

Return

The value.

Declaration

public static byte readUInt8(ByteBuffer bb) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    /**/* w  w  w  .j  a  v a  2  s  .c om*/
     * Read an 8-bit unsigned integer from the byte buffer.
     * 
     * @param bb The byte buffer.
     * @return The value.
     */
    public static byte readUInt8(ByteBuffer bb) {
        return bb.get();
    }
}

Related

  1. readUInt16(ByteBuffer bb)
  2. readUInt16BE(ByteBuffer bb)
  3. readUInt32(ByteBuffer buf, int length)
  4. readUInt64(ByteBuffer bb)
  5. readUInt64(ByteBuffer byteBuffer)
  6. readVarLong(ByteBuffer buff)
  7. readVarlong(ByteBuffer buffer)
  8. toLong(ByteBuffer buffer)
  9. toLong(ByteBuffer buffer)