MMIO.isolate constructor

MMIO.isolate(
  1. String json
)

Duplicates an existing MMIO from a JSON string. This special constructor is used to transfer an existing MMIO to an other isolate.

Implementation

MMIO.isolate(String json)
    : base = jsonMap(json)['base'] as int,
      size = jsonMap(json)['size'] as int,
      path = jsonMap(json)['path'] as String,
      _mmioHandle = Pointer<Void>.fromAddress(jsonMap(json)['handle'] as int);