Here you can find the source of setDecreasedBuffer(ByteBuffer memoryDumpReader, long baseAddressValue, int innerPointerOffset, long memoryDumpStartingOffset)
public static void setDecreasedBuffer(ByteBuffer memoryDumpReader, long baseAddressValue, int innerPointerOffset, long memoryDumpStartingOffset)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static void setDecreasedBuffer(ByteBuffer memoryDumpReader, long baseAddressValue, int innerPointerOffset, long memoryDumpStartingOffset) { int decreasedBufferPosition = (int) (baseAddressValue - memoryDumpStartingOffset + innerPointerOffset); if (decreasedBufferPosition < 0) { decreasedBufferPosition = 0; }//ww w . j a v a 2 s . c om memoryDumpReader.position(decreasedBufferPosition); } }