magickGetImageLength method

int? magickGetImageLength()

MagickGetImageLength() returns the image length in bytes.

Implementation

int? magickGetImageLength() => using(
      (Arena arena) {
        final Pointer<Size> lengthPtr = arena();
        final bool result =
            _magickWandBindings.MagickGetImageLength(_wandPtr, lengthPtr)
                .toBool();
        if (!result) {
          return null;
        }
        return lengthPtr.value;
      },
    );