char[] getChars(int start, int length) { assert getType() == HprofHeap.CHAR; char[] chars = new char[length]; long offset = getArrayStartOffset() + ((long)start * (long)charSize); HprofByteBuffer dumpBuffer = dumpClass.getHprofBuffer(); for (int i = 0; i < length; i++) { chars[i] = dumpBuffer.getChar(offset + (i * charSize)); } return chars; }
public long getSize() { long elementSize = dumpClass.getHprof().getValueSize(getType()); return dumpClass.classDumpSegment.getMinimumInstanceSize() + HPROF_ARRAY_OVERHEAD + (elementSize * getLength()); }
public List<Object> getValues() { HprofByteBuffer dumpBuffer = dumpClass.getHprofBuffer(); HprofHeap heap = dumpClass.getHprof(); byte type = getType(); long offset = getArrayStartOffset(); return new PrimitiveArrayLazyList(dumpBuffer, getLength(), offset, heap.getValueSize(type), type); }
char[] getChars(int start, int length) { assert getType() == HprofHeap.CHAR; char[] chars = new char[length]; long offset = getArrayStartOffset() + ((long)start * (long)charSize); HprofByteBuffer dumpBuffer = dumpClass.getHprofBuffer(); for (int i = 0; i < length; i++) { chars[i] = dumpBuffer.getChar(offset + (i * charSize)); } return chars; }
char[] getChars(int start, int length) { assert getType() == HprofHeap.CHAR; char[] chars = new char[length]; long offset = getArrayStartOffset() + ((long)start * (long)charSize); HprofByteBuffer dumpBuffer = dumpClass.getHprofBuffer(); for (int i = 0; i < length; i++) { chars[i] = dumpBuffer.getChar(offset + (i * charSize)); } return chars; }
public long getSize() { long elementSize = dumpClass.getHprof().getValueSize(getType()); return dumpClass.classDumpSegment.getMinimumInstanceSize() + HPROF_ARRAY_OVERHEAD + (elementSize * getLength()); }
public long getSize() { long elementSize = dumpClass.getHprof().getValueSize(getType()); return dumpClass.classDumpSegment.getMinimumInstanceSize() + HPROF_ARRAY_OVERHEAD + (elementSize * getLength()); }
public List /*<String>*/ getValues() { HprofByteBuffer dumpBuffer = dumpClass.getHprofBuffer(); HprofHeap heap = dumpClass.getHprof(); byte type = getType(); long offset = getArrayStartOffset(); return new PrimitiveArrayLazyList(dumpBuffer, getLength(), offset, heap.getValueSize(type), type); }
public List<Object> getValues() { HprofByteBuffer dumpBuffer = dumpClass.getHprofBuffer(); HprofHeap heap = dumpClass.getHprof(); byte type = getType(); long offset = getArrayStartOffset(); return new PrimitiveArrayLazyList(dumpBuffer, getLength(), offset, heap.getValueSize(type), type); }