public static bool TryGetGuidValue(
     ReadOnlySpan <byte> guidToken,
     out Guid guidValue)
 {
     return(JsonBinaryEncoding.TryGetFixedWidthValue <Guid>(
                guidToken,
                JsonBinaryEncoding.TypeMarker.Guid,
                out guidValue));
 }
 public static bool TryGetFloat64Value(
     ReadOnlySpan <byte> float64Token,
     out double float64Value)
 {
     return(JsonBinaryEncoding.TryGetFixedWidthValue <double>(
                float64Token,
                JsonBinaryEncoding.TypeMarker.Float64,
                out float64Value));
 }
 public static bool TryGetFloat32Value(
     ReadOnlySpan <byte> float32Token,
     out float float32Value)
 {
     return(JsonBinaryEncoding.TryGetFixedWidthValue <float>(
                float32Token,
                JsonBinaryEncoding.TypeMarker.Float32,
                out float32Value));
 }
 public static bool TryGetUInt32Value(
     ReadOnlySpan <byte> uInt32Token,
     out uint uInt32Value)
 {
     return(JsonBinaryEncoding.TryGetFixedWidthValue <uint>(
                uInt32Token,
                JsonBinaryEncoding.TypeMarker.UInt32,
                out uInt32Value));
 }
 public static bool TryGetInt64Value(
     ReadOnlySpan <byte> int64Token,
     out long int64Value)
 {
     return(JsonBinaryEncoding.TryGetFixedWidthValue <long>(
                int64Token,
                JsonBinaryEncoding.TypeMarker.Int64,
                out int64Value));
 }
 public static bool TryGetInt32Value(
     ReadOnlySpan <byte> int32Token,
     out int int32Value)
 {
     return(JsonBinaryEncoding.TryGetFixedWidthValue <int>(
                int32Token,
                JsonBinaryEncoding.TypeMarker.Int32,
                out int32Value));
 }
Esempio n. 7
0
 public static bool TryGetInt16Value(
     ReadOnlySpan <byte> int16Token,
     out short int16Value) => JsonBinaryEncoding.TryGetFixedWidthValue <short>(
     int16Token,
     JsonBinaryEncoding.TypeMarker.Int16,
     out int16Value);
Esempio n. 8
0
 public static bool TryGetInt8Value(
     ReadOnlySpan <byte> int8Token,
     out sbyte int8Value) => JsonBinaryEncoding.TryGetFixedWidthValue <sbyte>(
     int8Token,
     JsonBinaryEncoding.TypeMarker.Int8,
     out int8Value);