Java ByteBuffer to Long readUB1(ByteBuffer buffer)

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

Description

read UB

License

Apache License

Declaration

public static int readUB1(ByteBuffer buffer) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    public static int readUB1(ByteBuffer buffer) {
        int ret = buffer.get() & 0xff;
        return ret;
    }//  www  .  j a v a 2  s .  c  om
}

Related

  1. readLong(ByteBuffer in, final int fitInBytes)
  2. readLong(ByteBuffer logBuf)
  3. readLong64ls(int size, ByteBuffer byteBuf)
  4. readLongArray(ByteBuffer bb)
  5. readLongLE(ByteBuffer buf, int i)
  6. readUB4(ByteBuffer buffer)
  7. readUBEInt16(ByteBuffer b)
  8. readUInt16(ByteBuffer bb)
  9. readUInt16BE(ByteBuffer bb)