os 0.1.1 copy "os: ^0.1.1" to clipboard
os: ^0.1.1 copied to clipboard

outdated

Access to operating system APIs (using 'dart:ffi'). Virtual memory management, IPC pipes, file permissions, etc.

example/example.dart

import 'package:os/virtual_memory.dart';

void main() {
  // Allocate virtual memory
  final memory = VirtualMemory.allocate(1024);
  memory.asUint8List[0] = 42;

  // Make the memory read-only
  memory.setProtection(VirtualMemory.protectionWrite);

  // Any mutation will result in a crash now
  memory.asUint8List[0] = 99;
}
5
likes
0
pub points
47%
popularity

Publisher

verified publisherdint.dev

Access to operating system APIs (using 'dart:ffi'). Virtual memory management, IPC pipes, file permissions, etc.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, meta

More

Packages that depend on os