Class Utf8NameDecoder
Represents a UTF8 name decoder.
public class Utf8NameDecoder : INameDecoder
- Inheritance
-
Utf8NameDecoder
- Implements
- Inherited Members
- Extension Methods
Properties
Instance
Gets the instance.
public static Utf8NameDecoder Instance { get; }
Property Value
- Utf8NameDecoder
The instance.
Methods
Decode(BsonStream, UTF8Encoding)
Decodes the name.
public string Decode(BsonStream stream, UTF8Encoding encoding)
Parameters
stream
BsonStreamThe stream.
encoding
UTF8EncodingThe encoding.
Returns
- string
The name.
Inform(string)
Informs the decoder of an already decoded name (so the decoder can change state if necessary).
public void Inform(string name)
Parameters
name
stringThe name.