Java ByteBuffer to Int getUShort(java.nio.ByteBuffer buffer)

Here you can find the source of getUShort(java.nio.ByteBuffer buffer)

Description

get U Short

License

Open Source License

Declaration

public static int getUShort(java.nio.ByteBuffer buffer) 

Method Source Code

//package com.java2s;

public class Main {
    public static int getUShort(java.nio.ByteBuffer buffer) {
        return 0xFFFF & buffer.getShort();
    }//from  w  w  w.  j  a  va  2  s  . com
}

Related

  1. getUnsignedSmart(ByteBuffer buf)
  2. getUnsignedSmartInt(ByteBuffer buffer)
  3. getUnsignedVarInt(ByteBuffer buffer, int numBytes)
  4. getUShort(ByteBuffer buffer)
  5. getUShort(ByteBuffer buffer)
  6. readInt(ByteBuffer buf)
  7. readInt(ByteBuffer buf, int length)
  8. readInt(ByteBuffer buf, int pos)
  9. readInt(ByteBuffer buffer)