Java ByteBuffer Clean cleanMemBuff(MappedByteBuffer buffer)

Here you can find the source of cleanMemBuff(MappedByteBuffer buffer)

Description

clean Mem Buff

License

Apache License

Declaration

public static void cleanMemBuff(MappedByteBuffer buffer) 

Method Source Code

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

import java.nio.MappedByteBuffer;

import sun.nio.ch.DirectBuffer;

public class Main {
    public static void cleanMemBuff(MappedByteBuffer buffer) {

        ((DirectBuffer) buffer).cleaner().clean();
    }//from   ww  w  . ja  v  a  2 s  .c o m
}

Related

  1. callCleaner(ByteBuffer byteBuffer)
  2. cleanBuffer(final ByteBuffer bb)
  3. cleanDirectBuffer(ByteBuffer buffer)
  4. getCleanerMethod(final ByteBuffer buffer)