detectFormat static method

PatchFormat detectFormat(
  1. Uint8List patch
)

Detects the format of a patch file.

patch is the patch data.

Returns the detected patch format.

Throws PatchException if the format cannot be detected.

Implementation

static PatchFormat detectFormat(Uint8List patch) {
  return detectPatchFormat(patch);
}