hasUtf32Bom function

bool hasUtf32Bom(
  1. List<int> utf32EncodedBytes, [
  2. int offset = 0,
  3. int? length
])

Identifies whether a List of bytes starts (based on offset) with a byte-order marker (BOM).

Implementation

bool hasUtf32Bom(List<int> utf32EncodedBytes, [int offset = 0, int? length]) {
  return hasUtf32beBom(utf32EncodedBytes, offset, length) ||
      hasUtf32leBom(utf32EncodedBytes, offset, length);
}