Summary
Returns the first encoding where all the preamble bytes match
exactly.
- Namespace
-
GitVersion
.Helpers - Containing Type
- EncodingHelper
Syntax
public static Encoding? DetectEncoding(IList<byte> bytes)
Parameters
Name | Type | Description |
---|---|---|
bytes | IList |
The bytes to check for a matching preamble. |
Return Value
Type | Description |
---|---|
Encoding? | The encoding that has a matching preamble or null if one was not found. |