3 if bytes begins with the UTF-8 BOM (EF BB BF), otherwise 0.size_t utf8BomLength(const(ubyte)[] bytes) @safe pure nothrowReturns the length of a UTF-8 BOM prefix in bytes.
bytes | Input byte sequence. |
3 if bytes begins with the UTF-8 BOM (EF BB BF), otherwise 0.