Exemplo n.º 1
0
        public static string ToBase16String(ReadOnlySequence <byte> sequence, ConvertStringCase convertStringCase = ConvertStringCase.Lower)
        {
            switch (convertStringCase)
            {
            case ConvertStringCase.Lower:
            {
                _base16_Lower.Value.TryEncode(sequence, out string text, true);
                return(text);
            }

            case ConvertStringCase.Upper:
            {
                _base16_Upper.Value.TryEncode(sequence, out string text, true);
                return(text);
            }

            default:
                throw new NotSupportedException(nameof(convertStringCase));
            }
        }
Exemplo n.º 2
0
 public Base16(ConvertStringCase convertStringCase)
 {
     _convertStringCase = convertStringCase;
 }
Exemplo n.º 3
0
 public Base16()
 {
     _convertStringCase = ConvertStringCase.Lower;
 }