Java ByteBuffer to Long readUInt16(ByteBuffer bb)

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

Description

read U Int

License

LGPL

Declaration

public static int readUInt16(ByteBuffer bb) throws IOException 

Method Source Code

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

import java.io.IOException;

import java.nio.ByteBuffer;

public class Main {
    public static int readUInt16(ByteBuffer bb) throws IOException {
        return (bb.getShort() & 0xffff);
    }//from w  w w  . ja  va  2 s .  com
}

Related

  1. readLongArray(ByteBuffer bb)
  2. readLongLE(ByteBuffer buf, int i)
  3. readUB1(ByteBuffer buffer)
  4. readUB4(ByteBuffer buffer)
  5. readUBEInt16(ByteBuffer b)
  6. readUInt16BE(ByteBuffer bb)
  7. readUInt32(ByteBuffer buf, int length)
  8. readUInt64(ByteBuffer bb)
  9. readUInt64(ByteBuffer byteBuffer)