Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/RandomAccessHprofReader/readRecord

readRecord

fun <T> readRecord(recordPosition: Long, recordSize: Long, withRecordReader: HprofRecordReader.() -> T): T

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