Java ByteBuffer to Byte readByte(ByteBuffer buf, int i)

Here you can find the source of readByte(ByteBuffer buf, int i)

Description

read Byte

License

Open Source License

Declaration

public static byte readByte(ByteBuffer buf, int i) 

Method Source Code


//package com.java2s;
/* Partial import of https://github.com/jpountz/lz4-java, Apache 2.0 licensed. */

import java.nio.ByteBuffer;

public class Main {
    public static byte readByte(ByteBuffer buf, int i) {
        return buf.get(i);
    }//from  ww  w  .j  a  v a2 s  .  com
}

Related

  1. readByte(ByteBuffer buf, int pos)