os 0.1.2 copy "os: ^0.1.2" to clipboard
os: ^0.1.2 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
40
points
213
downloads

Publisher

verified publisherdint.dev

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

ffi, meta

More

Packages that depend on os