42 references to CborConformanceModeHelpers
System.Formats.Cbor (42)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
22if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode))
System\Formats\Cbor\Reader\CborReader.cs (1)
58CborConformanceModeHelpers.Validate(conformanceMode);
System\Formats\Cbor\Reader\CborReader.Integer.cs (1)
221if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresCanonicalIntegerRepresentation(ConformanceMode))
System\Formats\Cbor\Reader\CborReader.Map.cs (7)
37if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 110if (CborConformanceModeHelpers.RequiresSortedKeys(ConformanceMode)) 114else if (CborConformanceModeHelpers.RequiresUniqueKeys(ConformanceMode)) 142int cmp = CborConformanceModeHelpers.CompareKeyEncodings(previousKeyEncoding, currentKeyEncoding, ConformanceMode); 148else if (cmp == 0 && CborConformanceModeHelpers.RequiresUniqueKeys(ConformanceMode)) 215return CborConformanceModeHelpers.GetKeyEncodingHashCode(GetKeyEncoding(value)); 220return CborConformanceModeHelpers.AreEqualKeyEncodings(GetKeyEncoding(x), GetKeyEncoding(y));
System\Formats\Cbor\Reader\CborReader.Simple.cs (1)
173CborConformanceModeHelpers.RequireCanonicalSimpleValueEncodings(ConformanceMode))
System\Formats\Cbor\Reader\CborReader.String.cs (14)
33if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 68if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 141if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 178if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 190Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 224if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 236Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 279if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresUtf8Validation(ConformanceMode)) 281Encoding encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 308if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 379Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 415Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 495CborConformanceModeHelpers.RequiresUtf8Validation(ConformanceMode)) 498Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode);
System\Formats\Cbor\Reader\CborReader.Tag.cs (1)
287if (_isConformanceModeCheckEnabled && !CborConformanceModeHelpers.AllowsTags(ConformanceMode))
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
59if (!ConvertIndefiniteLengthEncodings && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode))
System\Formats\Cbor\Writer\CborWriter.cs (1)
88CborConformanceModeHelpers.Validate(conformanceMode);
System\Formats\Cbor\Writer\CborWriter.Map.cs (6)
78if (!ConvertIndefiniteLengthEncodings && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 97if (CborConformanceModeHelpers.RequiresUniqueKeys(ConformanceMode)) 121if (CborConformanceModeHelpers.RequiresSortedKeys(ConformanceMode)) 282return CborConformanceModeHelpers.GetKeyEncodingHashCode(GetKeyEncoding(range)); 287return CborConformanceModeHelpers.AreEqualKeyEncodings(GetKeyEncoding(x), GetKeyEncoding(y)); 292return CborConformanceModeHelpers.CompareKeyEncodings(GetKeyEncoding(in x), GetKeyEncoding(in y), _writer.ConformanceMode);
System\Formats\Cbor\Writer\CborWriter.Simple.cs (3)
25if (!CborConformanceModeHelpers.RequiresPreservingFloatPrecision(ConformanceMode) && 45if (!CborConformanceModeHelpers.RequiresPreservingFloatPrecision(ConformanceMode) && 119CborConformanceModeHelpers.RequireCanonicalSimpleValueEncodings(ConformanceMode))
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (1)
24if (Half.IsNaN(value) && !CborConformanceModeHelpers.RequiresPreservingFloatPrecision(ConformanceMode))
System\Formats\Cbor\Writer\CborWriter.String.cs (3)
74if (!ConvertIndefiniteLengthEncodings && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 129Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 171if (!ConvertIndefiniteLengthEncodings && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode))
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
22if (!CborConformanceModeHelpers.AllowsTags(ConformanceMode))