Exemple #1
0
 public bool ByteSpanToInt32(Utf8ByteArrayArgument text)
 => Utf8Parser.TryParse(text.CreateSpan(), out int value, out int consumed);
 public bool PrimitiveParserByteSpanToUInt32_BytesConsumed_VariableLength(Utf8ByteArrayArgument text)
 => Utf8Parser.TryParse(text.CreateSpan(), out uint value, out int bytesConsumed);
 public bool PrimitiveParserByteSpanToUInt64_BytesConsumed(Utf8ByteArrayArgument text) => Utf8Parser.TryParse(text.CreateSpan(), out ulong value, out int bytesConsumed);
 public bool BaselineByteStarToUInt32_VariableLength(Utf8ByteArrayArgument text)
 => uint.TryParse(text.Text, NumberStyles.None, CultureInfo.InvariantCulture, out uint value);
 public bool BaselineSimpleByteStarToUInt32_VariableLength(Utf8ByteArrayArgument text)
 => uint.TryParse(text.Text, out uint value);
 public bool ByteSpanToSByte(Utf8ByteArrayArgument text)
 => Utf8Parser.TryParse(text.CreateSpan(), out sbyte value, out int bytesConsumed);
Exemple #7
0
 public bool PrimitiveParserByteSpanToInt16(Utf8ByteArrayArgument text)
 => Utf8Parser.TryParse(text.CreateSpan(), out short value, out int consumed);
Exemple #8
0
 public void PrimitiveParserByteSpanToBool(Utf8ByteArrayArgument text) => Utf8Parser.TryParse(text.CreateSpan(), out bool value, out int bytesConsumed);