Java ByteBuffer Get getLTriad(ByteBuffer bb)

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

Description

get L Triad

License

Open Source License

Declaration

public static int getLTriad(ByteBuffer bb) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.nio.ByteBuffer;

public class Main {
    public static int getLTriad(ByteBuffer bb) {
        return (int) (bb.get() << 16 | bb.get() << 8 | bb.get());
    }/*from  ww w . j a v a2s .com*/

    public static int getLTriad(byte[] data, int offset) {
        return (data[offset] & 0xff) | (data[offset + 1] & 0xff) << 8 | (data[offset + 2] & 0xff) << 16;
    }
}

Related

  1. getJagexString(ByteBuffer buf)
  2. getJceBufArray(ByteBuffer buffer)
  3. getLength(ByteBuffer buffer)
  4. getLengthFromBuffer(ByteBuffer in)
  5. getListFromByteBuffer(ByteBuffer data, List classes)
  6. getMean(ByteBuffer simulationResults)
  7. getMedium(ByteBuffer buffer)
  8. getMediumInt(ByteBuffer buffer)
  9. getModularShort(ByteBuffer bb)