fromBuffer static method

Elf? fromBuffer(
  1. Uint8List bytes
)

Creates an Elf from bytes.

Returns null if the file does not start with the ELF magic number.

Implementation

static Elf? fromBuffer(Uint8List bytes) =>
    Elf.fromReader(Reader.fromTypedData(bytes));