C# Class System.Text.Utf8.Utf8Encoder

Exibir arquivo Open project: antiufo/Shaman.ValueString Class Usage Examples

Public Methods

Method Description
TryDecodeCodePoint ( Span buffer, UnicodeCodePoint &codePoint, int &encodedBytes ) : bool
TryEncodeCodePoint ( UnicodeCodePoint codePoint, Span buffer, int &encodedBytes ) : bool

Private Methods

Method Description
GetNumberOfEncodedBytes ( UnicodeCodePoint codePoint ) : int
TryDecodeCodePointBackwards ( Span buffer, UnicodeCodePoint &codePoint, int &encodedBytes ) : bool
TryFindEncodedCodePointBytesCountGoingBackwards ( Span buffer, int &encodedBytes ) : bool
TryGetFirstByteCodePointValue ( byte first, UnicodeCodePoint &codePoint, int &encodedBytes ) : bool
TryGetNumberOfEncodedBytesFromFirstByte ( byte first, int &numberOfBytes ) : bool
TryReadCodePointByte ( byte nextByte, UnicodeCodePoint &codePoint ) : bool

Method Details

TryDecodeCodePoint() public static method

public static TryDecodeCodePoint ( Span buffer, UnicodeCodePoint &codePoint, int &encodedBytes ) : bool
buffer Span
codePoint UnicodeCodePoint
encodedBytes int
return bool

TryEncodeCodePoint() public static method

public static TryEncodeCodePoint ( UnicodeCodePoint codePoint, Span buffer, int &encodedBytes ) : bool
codePoint UnicodeCodePoint
buffer Span
encodedBytes int
return bool