read Record
fun <T> readRecord( recordPosition: Long, recordSize: Long, withRecordReader: HprofRecordReader.() -> T): T
Content copied to clipboard
Loads recordSize bytes at recordPosition into the buffer that backs HprofRecordReader then calls withRecordReader with that reader as a receiver. withRecordReader is expected to use the receiver reader to read one record of exactly recordSize bytes.
Return
the results from withRecordReader