64 references to CborConformanceMode
System.Formats.Cbor (64)
System\Formats\Cbor\CborConformanceLevel.cs (48)
57public static void Validate(CborConformanceMode conformanceMode) 59if (conformanceMode < CborConformanceMode.Lax || 60conformanceMode > CborConformanceMode.Ctap2Canonical) 66public static bool RequiresCanonicalIntegerRepresentation(CborConformanceMode conformanceMode) 70case CborConformanceMode.Lax: 71case CborConformanceMode.Strict: 74case CborConformanceMode.Canonical: 75case CborConformanceMode.Ctap2Canonical: 83public static bool RequiresPreservingFloatPrecision(CborConformanceMode conformanceMode) 87case CborConformanceMode.Lax: 88case CborConformanceMode.Strict: 89case CborConformanceMode.Canonical: 92case CborConformanceMode.Ctap2Canonical: 100public static bool RequiresUtf8Validation(CborConformanceMode conformanceMode) 104case CborConformanceMode.Lax: 107case CborConformanceMode.Strict: 108case CborConformanceMode.Canonical: 109case CborConformanceMode.Ctap2Canonical: 117public static Encoding GetUtf8Encoding(CborConformanceMode conformanceMode) 119return conformanceMode == CborConformanceMode.Lax ? s_utf8EncodingLax : s_utf8EncodingStrict; 122public static bool RequiresDefiniteLengthItems(CborConformanceMode conformanceMode) 126case CborConformanceMode.Lax: 127case CborConformanceMode.Strict: 130case CborConformanceMode.Canonical: 131case CborConformanceMode.Ctap2Canonical: 139public static bool AllowsTags(CborConformanceMode conformanceMode) 143case CborConformanceMode.Lax: 144case CborConformanceMode.Strict: 145case CborConformanceMode.Canonical: 148case CborConformanceMode.Ctap2Canonical: 156public static bool RequiresUniqueKeys(CborConformanceMode conformanceMode) 160case CborConformanceMode.Lax: 163case CborConformanceMode.Strict: 164case CborConformanceMode.Canonical: 165case CborConformanceMode.Ctap2Canonical: 173public static bool RequiresSortedKeys(CborConformanceMode conformanceMode) 177case CborConformanceMode.Strict: 178case CborConformanceMode.Lax: 181case CborConformanceMode.Canonical: 182case CborConformanceMode.Ctap2Canonical: 190public static bool RequireCanonicalSimpleValueEncodings(CborConformanceMode conformanceMode) 194case CborConformanceMode.Lax: 197case CborConformanceMode.Strict: 198case CborConformanceMode.Canonical: 199case CborConformanceMode.Ctap2Canonical: 232public static int CompareKeyEncodings(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right, CborConformanceMode mode) 238case CborConformanceMode.Canonical: 249case CborConformanceMode.Ctap2Canonical:
System\Formats\Cbor\Reader\CborReader.cs (5)
36public CborConformanceMode ConformanceMode { get; } 53/// Defaults to <see cref="CborConformanceMode.Strict" /> conformance mode.</param> 56public CborReader(ReadOnlyMemory<byte> data, CborConformanceMode conformanceMode = CborConformanceMode.Strict, bool allowMultipleRootLevelValues = false) 67/// <param name="disableConformanceModeChecks"><see langword="true" /> to disable conformance mode validation for the read value, equivalent to using <see cref="CborConformanceMode.Lax" />; otherwise, <see langword="false" />.</param>
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (2)
11/// <param name="disableConformanceModeChecks"><see langword="true" /> to disable conformance mode validation for the skipped values, equivalent to using <see cref="CborConformanceMode.Lax" />; otherwise, <see langword="false" />.</param> 24/// <param name="disableConformanceModeChecks"><see langword="true" /> to disable conformance mode validation for the skipped values, equivalent to using <see cref="CborConformanceMode.Lax" />; otherwise, <see langword="false" />.</param>
System\Formats\Cbor\Writer\CborWriter.cs (9)
37public CborConformanceMode ConformanceMode { get; } 61/// Defaults to <see cref="CborConformanceMode.Strict" /> conformance mode.</param> 64/// <exception cref="ArgumentOutOfRangeException"><paramref name="conformanceMode" /> is not a defined <see cref="CborConformanceMode" />.</exception> 66public CborWriter(CborConformanceMode conformanceMode, bool convertIndefiniteLengthEncodings, bool allowMultipleRootLevelValues) 73/// Defaults to <see cref="CborConformanceMode.Strict" /> conformance mode.</param> 78/// <para><paramref name="conformanceMode" /> is not a defined <see cref="CborConformanceMode" />.</para> 83CborConformanceMode conformanceMode = CborConformanceMode.Strict, 153static unsafe void ValidateEncoding(ReadOnlySpan<byte> encodedValue, CborConformanceMode conformanceMode)