Skip to main content

pe 0.1.0 copy "pe: ^0.1.0" to clipboard
pe: ^0.1.0 copied to clipboard

Read and write PE format files.

example/main.dart

import 'package:pe/pe.dart' as pe;

void main() {
  final data = pe.Data()..read('C:/Windows/System32/cmd.exe');
  print('machine : ${data.file.machine == 332 ? 'x86' : 'x64'}');
  for (final sectionTable in data.sectionTables) {
    int? end = sectionTable.name.indexOf(0);
    if (end == -1) {
      end = null;
    }
    final name = String.fromCharCodes(sectionTable.name, 0, end);
    print('${name.padRight(8)}: ${sectionTable.sizeOfRawData}');
  }
}
0
likes
140
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Read and write PE format files.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on pe