Java ByteBuffer Get getMediumInt(ByteBuffer buffer)

Here you can find the source of getMediumInt(ByteBuffer buffer)

Description

get Medium Int

License

BEER-WARE LICENSE

Declaration

public static int getMediumInt(ByteBuffer buffer) 

Method Source Code


//package com.java2s;
//License from project: BEER-WARE LICENSE 

import java.nio.ByteBuffer;

public class Main {
    public static int getMediumInt(ByteBuffer buffer) {
        return (buffer.get() & 0xFF) << 16 | (buffer.get() & 0xFF) << 8 | buffer.get() & 0xFF;
    }//from w  w  w. j  a v  a 2  s  .com
}

Related

  1. getLengthFromBuffer(ByteBuffer in)
  2. getListFromByteBuffer(ByteBuffer data, List classes)
  3. getLTriad(ByteBuffer bb)
  4. getMean(ByteBuffer simulationResults)
  5. getMedium(ByteBuffer buffer)
  6. getModularShort(ByteBuffer bb)
  7. getMultiString(ByteBuffer bb, boolean wideChar)
  8. getNaluStartLength(ByteBuffer buffer)
  9. getNextTagNum(ByteBuffer message)