Here you can find the source of set0byte(MappedByteBuffer mem, byte value)
public static void set0byte(MappedByteBuffer mem, byte value)
//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(); } }