public unsafe static bool TryParseInt16(byte *text, int length, out short value)
                {
                    int consumed;
                    var span = new ReadOnlySpan <byte>(text, length);

                    return(PrimitiveParser.TryParseInt16(span, out value, out consumed, EncodingData.InvariantUtf8, 'X'));
                }
                public static bool TryParseInt16(ReadOnlySpan <char> text, out short value)
                {
                    int consumed;
                    var byteSpan = text.Cast <char, byte>();

                    return(PrimitiveParser.TryParseInt16(byteSpan, out value, out consumed, EncodingData.InvariantUtf16, 'X'));
                }
                public static bool TryParseInt16(ReadOnlySpan <char> text, out short value, out int charactersConsumed)
                {
                    var  byteSpan = text.Cast <char, byte>();
                    int  bytesConsumed;
                    bool result = PrimitiveParser.TryParseInt16(byteSpan, out value, out bytesConsumed, EncodingData.InvariantUtf16, 'X');

                    charactersConsumed = bytesConsumed / sizeof(char);
                    return(result);
                }
                public unsafe static bool TryParseInt16(char *text, int length, out short value, out int charactersConsumed)
                {
                    var  span = new ReadOnlySpan <byte>(text, length * sizeof(char));
                    int  bytesConsumed;
                    bool result = PrimitiveParser.TryParseInt16(span, out value, out bytesConsumed, EncodingData.InvariantUtf16, 'X');

                    charactersConsumed = bytesConsumed / sizeof(char);
                    return(result);
                }
 public static bool TryParseInt16(ReadOnlySpan <byte> text, out short value, out int bytesConsumed)
 {
     return(PrimitiveParser.TryParseInt16(text, out value, out bytesConsumed, EncodingData.InvariantUtf8, 'X'));
 }
            public static bool TryParseInt16(ReadOnlySpan <byte> text, out short value)
            {
                int consumed;

                return(PrimitiveParser.TryParseInt16(text, out value, out consumed, EncodingData.InvariantUtf8));
            }