Java ByteBuffer Set set0byte(MappedByteBuffer mem, byte value)

Here you can find the source of set0byte(MappedByteBuffer mem, byte value)

Description

setbyte

License

Apache License

Declaration

public static void set0byte(MappedByteBuffer mem, byte value) 

Method Source Code

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

import java.nio.MappedByteBuffer;

public class Main {
    public static void set0byte(MappedByteBuffer mem, byte value) {
        mem.put(0, value);/* w ww.j a  v  a  2  s  .c om*/
        mem.force();
    }
}

Related

  1. redInteger1(ByteBuffer buffer, int _offset)
  2. redString(ByteBuffer buffer, int offset, Charset charset)
  3. releaseTemporaryDirectBuffer(ByteBuffer buf)
  4. reset(int offset, ByteBuffer b)
  5. resetBit(ByteBuffer in, int pos)
  6. set24BitInt(ByteBuffer buffer, int value)
  7. setBatch(ByteBuffer bb, long batchId)
  8. setByteOrder(ByteBuffer buffer)
  9. setBytesAtOffset(ByteBuffer buffer, int offset, int length, byte[] data)