BinaryView

class BinaryView(source: Binary, start: Int, size: Int) : Binary

View section of a Binary as an independent binary

Constructors

BinaryView
Link copied to clipboard
common
fun BinaryView(source: Binary, start: Int, size: Int)

Functions

read
Link copied to clipboard
common
open override fun <R> read(offset: Int, atMost: Int, block: Input.() -> R): R

Read maximum of atMost bytes as input from the binary, starting at offset. The generated input is always closed when leaving scope, so it could not be leaked outside of scope of block.

Properties

size
Link copied to clipboard
common
open override val size: Int