Here you can find the source of savePageBitMask(ByteBuffer buffer, BitSet freePagesBitSet)
public static void savePageBitMask(ByteBuffer buffer, BitSet freePagesBitSet)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; import java.util.BitSet; public class Main { public static void savePageBitMask(ByteBuffer buffer, BitSet freePagesBitSet) { buffer.position(Integer.BYTES); buffer.put(freePagesBitSet.toByteArray()); }/* w ww. ja v a2 s. c om*/ }