1 write to ConformanceMode
System.Formats.Cbor (1)
System\Formats\Cbor\Reader\CborReader.cs (1)
61
ConformanceMode
= conformanceMode;
38 references to ConformanceMode
System.Formats.Cbor (38)
System\Formats\Cbor\Reader\CborReader.Array.cs (2)
22
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
24
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
System\Formats\Cbor\Reader\CborReader.cs (1)
86
/// <see cref="
ConformanceMode
"/> and <see cref="AllowMultipleRootLevelValues"/> are unchanged.
System\Formats\Cbor\Reader\CborReader.Integer.cs (2)
221
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresCanonicalIntegerRepresentation(
ConformanceMode
))
223
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_NonCanonicalIntegerRepresentation,
ConformanceMode
));
System\Formats\Cbor\Reader\CborReader.Map.cs (9)
37
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
39
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_RequiresDefiniteLengthItems,
ConformanceMode
));
110
if (CborConformanceModeHelpers.RequiresSortedKeys(
ConformanceMode
))
114
else if (CborConformanceModeHelpers.RequiresUniqueKeys(
ConformanceMode
))
142
int cmp = CborConformanceModeHelpers.CompareKeyEncodings(previousKeyEncoding, currentKeyEncoding,
ConformanceMode
);
146
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_KeysNotInSortedOrder,
ConformanceMode
));
148
else if (cmp == 0 && CborConformanceModeHelpers.RequiresUniqueKeys(
ConformanceMode
))
151
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys,
ConformanceMode
));
167
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys,
ConformanceMode
));
System\Formats\Cbor\Reader\CborReader.Simple.cs (2)
173
CborConformanceModeHelpers.RequireCanonicalSimpleValueEncodings(
ConformanceMode
))
175
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding,
ConformanceMode
));
System\Formats\Cbor\Reader\CborReader.String.cs (20)
33
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
35
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
68
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
70
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
141
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
143
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
178
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
180
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
190
Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(
ConformanceMode
);
224
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
226
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
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
))
310
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
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 (2)
287
if (_isConformanceModeCheckEnabled && !CborConformanceModeHelpers.AllowsTags(
ConformanceMode
))
289
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_TagsNotSupported,
ConformanceMode
));