isHDRBytes static method

bool isHDRBytes(
  1. Uint8List bytes
)

Implementation

static bool isHDRBytes(Uint8List bytes) {
  final pBytes = malloc<ffi.Uint8>(bytes.length);
  pBytes.asTypedList(bytes.length).setAll(0, bytes);
  final result = c.stbi_is_hdr_from_memory(pBytes.cast(), bytes.length);
  calloc.free(pBytes);
  return result != 0;
}