Mono Class Library: System.Text.Encoding Overview | MembersSystem.Text.Encoding.GetPreamble Method |
Returns the bytes used at the beginning of a System.IO.Stream to determine which System.Text.Encoding the stream was created with. [Edit]
|
A byte array that identifies the encoding used on a stream. [Edit]
Note: The preamble can be the Unicode byte order mark (U+FEFF written in the appropriate encoding) or any other type of identifying marks. This method can return an empty array.Operation
As described above.The default implementation returns an empty byte array.
Note to Inheritors
Override this method to return a byte array containing the preamble appropriate for the type derived from System.Text.Encoding . [Edit]
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0