fromBytes

@NotNull
open fun fromBytes(data: @NotNull Array<Byte>): @NotNull CoreDumpHeader

Parse the core dump header from the default offset of 0.

Return

The core dump header.

Parameters

data

entire core dump in bytes

Throws

If the magic number was invalid.


@NotNull
open fun fromBytes(data: @NotNull Array<Byte>, offset: Int): @NotNull CoreDumpHeader

Parse the core dump header from a given offset.

Return

The core dump header.

Parameters

data

data containing the core dump

offset

the offset to start parsing the header from.

Throws

If the magic number was invalid.