Java ByteBuffer Get getByteAsShort(java.nio.ByteBuffer buffer)

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

Description

get Byte As Short

License

Open Source License

Declaration

public static short getByteAsShort(java.nio.ByteBuffer buffer) 

Method Source Code

//package com.java2s;

public class Main {
    public static short getByteAsShort(java.nio.ByteBuffer buffer) {
        return (short) (0xFF & buffer.get());
    }//w  w w .ja v a 2s.c  o m
}

Related

  1. getBoolean(java.nio.ByteBuffer buffer)
  2. getBuffer(ByteBuffer buffer, int len)
  3. getBufferBytes(ByteBuffer bb)
  4. getByte(ByteBuffer bb)
  5. getByte(ByteBuffer byteBuffer)
  6. getByteLen(ByteBuffer buffer)
  7. getChars(ByteBuffer buf, int off, int count)
  8. getCPCharacter(ByteBuffer buffer)
  9. getCrcChecksum(ByteBuffer buffer)