Java ByteBuffer Write writeByte(ByteBuffer dest, int off, int i)

Here you can find the source of writeByte(ByteBuffer dest, int off, int i)

Description

write Byte

License

Open Source License

Declaration

public static void writeByte(ByteBuffer dest, int off, 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 void writeByte(ByteBuffer dest, int off, int i) {
        dest.put(off, (byte) i);
    }/*from  w  w w  .j  a  v  a 2  s . co m*/
}

Related

  1. writeBooleanArray(boolean[] array, ByteBuffer out)
  2. writeBuffer(ByteBuffer dest, ByteBuffer src)
  3. writeBuffer(ByteChannel channel, ByteBuffer buffer)
  4. writeBuffer(FileChannel fc, ByteBuffer buf, int startPos)
  5. writeBuffer(WritableByteChannel chan, ByteBuffer buf)
  6. writeByteArray(byte[] array, ByteBuffer out)
  7. writeByteArray(byte[] data, ByteBuffer buffer)
  8. writeByteArray(ByteBuffer byteBuffer, byte[] bytes)
  9. writeByteArray(ByteBuffer logBuf, byte[] b)