is16BitBytes static method

bool is16BitBytes(
  1. Uint8List bytes
)

Implementation

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