Java ByteBuffer Save savePageBitMask(ByteBuffer buffer, BitSet freePagesBitSet)

Here you can find the source of savePageBitMask(ByteBuffer buffer, BitSet freePagesBitSet)

Description

save Page Bit Mask

License

Open Source License

Declaration

public static void savePageBitMask(ByteBuffer buffer, BitSet freePagesBitSet) 

Method Source Code


//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*/
}

Related

  1. saveAsBMP(String filename, ByteBuffer pixel_data, int width, int height)
  2. saveAsFile(File targetFile, ByteBuffer bb)
  3. saveAsTempFile(ByteBuffer byteBuffer, String extension)
  4. saveAsTGA(String filename, ByteBuffer pixel_data, int width, int height)
  5. saveBytesBufferToFile(ByteBuffer buf, String filename)
  6. saveStruct(ByteBuffer o, String[] struct, Object instance)