Pointer<Uint8> getPointer() { final ptr = malloc.allocate<Uint8>(length); final byteList = ptr.asTypedList(length); byteList.setAll(0, this); return ptr.cast(); }