getSYSTEMINFOPointer method

  1. @visibleForTesting
Pointer<SYSTEM_INFO> getSYSTEMINFOPointer()

Implementation

@visibleForTesting
Pointer<SYSTEM_INFO> getSYSTEMINFOPointer() {
  final pointer = calloc<SYSTEM_INFO>();
  pointer.ref
    ..wProcessorArchitecture = 0
    ..wReserved = 0
    ..dwPageSize = 0
    ..lpMaximumApplicationAddress = nullptr
    ..lpMaximumApplicationAddress = nullptr
    ..dwActiveProcessorMask = 0
    ..dwNumberOfProcessors = 0
    ..dwProcessorType = 0
    ..dwAllocationGranularity = 0
    ..wProcessorLevel = 0
    ..wProcessorRevision = 0;
  return pointer;
}