hasUtf32Bom function
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);
}