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