Skip to content

Commit 751d219

Browse files
committed
Minor code edits
1 parent f5f7ed4 commit 751d219

4 files changed

Lines changed: 43 additions & 38 deletions

File tree

CBOR/PeterO/Cbor/CBORNumber.cs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,8 +1127,9 @@ private static NumberKind GetConvertKind(CBORNumber a, CBORNumber b) {
11271127
/// <exception cref='ArgumentNullException'>The parameter <paramref
11281128
/// name='b'/> is null.</exception>
11291129
/// <exception cref='OutOfMemoryException'>The exact result of the
1130-
/// operation might be too big to fit in memory (or might require more
1131-
/// than 2 gigabytes of memory to store).</exception>
1130+
/// operation might be too big to fit in system memory (or might
1131+
/// require more than 2 gigabytes of system memory to
1132+
/// store).</exception>
11321133
public CBORNumber Add(CBORNumber b) {
11331134
if (b == null) {
11341135
throw new ArgumentNullException(nameof(b));
@@ -1201,8 +1202,9 @@ public CBORNumber Add(CBORNumber b) {
12011202
/// <exception cref='ArgumentNullException'>The parameter <paramref
12021203
/// name='b'/> is null.</exception>
12031204
/// <exception cref='OutOfMemoryException'>The exact result of the
1204-
/// operation might be too big to fit in memory (or might require more
1205-
/// than 2 gigabytes of memory to store).</exception>
1205+
/// operation might be too big to fit in system memory (or might
1206+
/// require more than 2 gigabytes of system memory to
1207+
/// store).</exception>
12061208
public CBORNumber Subtract(CBORNumber b) {
12071209
if (b == null) {
12081210
throw new ArgumentNullException(nameof(b));
@@ -1269,8 +1271,9 @@ public CBORNumber Subtract(CBORNumber b) {
12691271
/// <exception cref='ArgumentNullException'>The parameter <paramref
12701272
/// name='b'/> is null.</exception>
12711273
/// <exception cref='OutOfMemoryException'>The exact result of the
1272-
/// operation might be too big to fit in memory (or might require more
1273-
/// than 2 gigabytes of memory to store).</exception>
1274+
/// operation might be too big to fit in system memory (or might
1275+
/// require more than 2 gigabytes of system memory to
1276+
/// store).</exception>
12741277
public CBORNumber Multiply(CBORNumber b) {
12751278
if (b == null) {
12761279
throw new ArgumentNullException(nameof(b));
@@ -1334,8 +1337,9 @@ public CBORNumber Multiply(CBORNumber b) {
13341337
/// <exception cref='ArgumentNullException'>The parameter <paramref
13351338
/// name='b'/> is null.</exception>
13361339
/// <exception cref='OutOfMemoryException'>The exact result of the
1337-
/// operation might be too big to fit in memory (or might require more
1338-
/// than 2 gigabytes of memory to store).</exception>
1340+
/// operation might be too big to fit in system memory (or might
1341+
/// require more than 2 gigabytes of system memory to
1342+
/// store).</exception>
13391343
public CBORNumber Divide(CBORNumber b) {
13401344
if (b == null) {
13411345
throw new ArgumentNullException(nameof(b));
@@ -1445,8 +1449,9 @@ public CBORNumber Divide(CBORNumber b) {
14451449
/// <exception cref='ArgumentNullException'>The parameter <paramref
14461450
/// name='b'/> is null.</exception>
14471451
/// <exception cref='OutOfMemoryException'>The exact result of the
1448-
/// operation might be too big to fit in memory (or might require more
1449-
/// than 2 gigabytes of memory to store).</exception>
1452+
/// operation might be too big to fit in system memory (or might
1453+
/// require more than 2 gigabytes of system memory to
1454+
/// store).</exception>
14501455
public CBORNumber Remainder(CBORNumber b) {
14511456
if (b == null) {
14521457
throw new ArgumentNullException(nameof(b));

CBOR/PeterO/Cbor/CBORObject.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ public static CBORObject DecodeFromBytes(
10571057
/// <c>ToJSONString</c>, then the JSON is converted back to CBOR with
10581058
/// this method, the new CBOR object will not necessarily be the same
10591059
/// as the old CBOR object, especially if the old CBOR object uses data
1060-
/// types not supported in JSON, such as integers in map
1060+
/// types not available in JSON, such as integers in map
10611061
/// keys.</para></summary>
10621062
/// <param name='str'>A text string in JSON format. The entire string
10631063
/// must contain a single JSON object and not multiple objects. The
@@ -1089,7 +1089,7 @@ public static CBORObject FromJSONString(string str, int offset, int count) {
10891089
/// <c>ToJSONString</c>, then the JSON is converted back to CBOR with
10901090
/// this method, the new CBOR object will not necessarily be the same
10911091
/// as the old CBOR object, especially if the old CBOR object uses data
1092-
/// types not supported in JSON, such as integers in map
1092+
/// types not available in JSON, such as integers in map
10931093
/// keys.</para></summary>
10941094
/// <param name='str'>A text string in JSON format. The entire string
10951095
/// must contain a single JSON object and not multiple objects. The
@@ -1120,7 +1120,7 @@ public static CBORObject FromJSONString(
11201120
/// <c>ToJSONString</c>, then the JSON is converted back to CBOR with
11211121
/// this method, the new CBOR object will not necessarily be the same
11221122
/// as the old CBOR object, especially if the old CBOR object uses data
1123-
/// types not supported in JSON, such as integers in map
1123+
/// types not available in JSON, such as integers in map
11241124
/// keys.</para></summary>
11251125
/// <param name='str'>A text string in JSON format. The entire string
11261126
/// must contain a single JSON object and not multiple objects. The
@@ -1141,7 +1141,7 @@ public static CBORObject FromJSONString(string str) {
11411141
/// <c>ToJSONString</c>, then the JSON is converted back to CBOR with
11421142
/// this method, the new CBOR object will not necessarily be the same
11431143
/// as the old CBOR object, especially if the old CBOR object uses data
1144-
/// types not supported in JSON, such as integers in map
1144+
/// types not available in JSON, such as integers in map
11451145
/// keys.</para></summary>
11461146
/// <param name='str'>The parameter <paramref name='str'/> is a text
11471147
/// string.</param>
@@ -2707,7 +2707,7 @@ public static CBORObject FromObject(
27072707
/// if the nullable's value is <c>null</c>
27082708
/// , or
27092709
/// converted according to the nullable's underlying type, if that type
2710-
/// is supported by this method.</item>
2710+
/// is allowed for this method.</item>
27112711
/// <item>In the Java version, a
27122712
/// number of type <c>BigInteger</c>
27132713
/// or <c>BigDecimal</c>
@@ -3591,7 +3591,7 @@ public static CBORObject ReadJSON(
35913591
/// <c>ToJSONBytes</c>, then the JSON is converted back to CBOR with
35923592
/// this method, the new CBOR object will not necessarily be the same
35933593
/// as the old CBOR object, especially if the old CBOR object uses data
3594-
/// types not supported in JSON, such as integers in map
3594+
/// types not available in JSON, such as integers in map
35953595
/// keys.</para></summary>
35963596
/// <param name='bytes'>A byte array in JSON format. The entire byte
35973597
/// array must contain a single JSON object and not multiple objects.
@@ -3620,7 +3620,7 @@ public static CBORObject FromJSONBytes(byte[] bytes) {
36203620
/// <c>ToJSONBytes</c>, then the JSON is converted back to CBOR with
36213621
/// this method, the new CBOR object will not necessarily be the same
36223622
/// as the old CBOR object, especially if the old CBOR object uses data
3623-
/// types not supported in JSON, such as integers in map
3623+
/// types not available in JSON, such as integers in map
36243624
/// keys.</para></summary>
36253625
/// <param name='bytes'>A byte array in JSON format. The entire byte
36263626
/// array must contain a single JSON object and not multiple objects.
@@ -3660,7 +3660,7 @@ public static CBORObject FromJSONBytes(
36603660
/// <c>ToJSONBytes</c>, then the JSON is converted back to CBOR with
36613661
/// this method, the new CBOR object will not necessarily be the same
36623662
/// as the old CBOR object, especially if the old CBOR object uses data
3663-
/// types not supported in JSON, such as integers in map
3663+
/// types not available in JSON, such as integers in map
36643664
/// keys.</para></summary>
36653665
/// <param name='bytes'>A byte array, the specified portion of which is
36663666
/// in JSON format. The specified portion of the byte array must
@@ -3699,7 +3699,7 @@ public static CBORObject FromJSONBytes(byte[] bytes, int offset, int
36993699
/// <c>ToJSONBytes</c>, then the JSON is converted back to CBOR with
37003700
/// this method, the new CBOR object will not necessarily be the same
37013701
/// as the old CBOR object, especially if the old CBOR object uses data
3702-
/// types not supported in JSON, such as integers in map
3702+
/// types not available in JSON, such as integers in map
37033703
/// keys.</para></summary>
37043704
/// <param name='bytes'>A byte array, the specified portion of which is
37053705
/// in JSON format. The specified portion of the byte array must
@@ -5908,7 +5908,7 @@ public CBORObject Set(int key, CBORObject mapValue) {
59085908
/// order to a JSON string, or to write out a CBOR object as part of a
59095909
/// JSON text sequence.</para>
59105910
/// <para><b>Warning:</b> In general, if this CBOR object contains
5911-
/// integer map keys or uses other features not supported in JSON, and
5911+
/// integer map keys or uses other features not available in JSON, and
59125912
/// the application converts this CBOR object to JSON and back to CBOR,
59135913
/// the application
59145914
/// <i>should not</i> expect the new CBOR object to be exactly the same
@@ -5982,7 +5982,7 @@ public string ToJSONString() {
59825982
/// </list>
59835983
/// <para><b>Warning:</b>
59845984
/// In general, if this CBOR object contains
5985-
/// integer map keys or uses other features not supported in JSON, and
5985+
/// integer map keys or uses other features not available in JSON, and
59865986
/// the application converts this CBOR object to JSON and back to CBOR,
59875987
/// the application <i>should not</i>
59885988
/// expect the new CBOR object to be
@@ -7212,7 +7212,7 @@ private static bool CBORMapEquals(
72127212
return false;
72137213
}
72147214
if (kvp.Value == null) {
7215-
// Null (as opposed to CBORObject.Null) values not supported in CBOR maps.
7215+
// Null (as opposed to CBORObject.Null) values not available in CBOR maps.
72167216
throw new InvalidOperationException();
72177217
}
72187218
if (!kvp.Value.Equals(valueB)) {

docs/PeterO.Cbor.CBORNumber.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The parameter <i>b</i>
130130
is null.
131131

132132
* System.OutOfMemoryException:
133-
The exact result of the operation might be too big to fit in memory (or might require more than 2 gigabytes of memory to store).
133+
The exact result of the operation might be too big to fit in system memory (or might require more than 2 gigabytes of system memory to store).
134134

135135
<a id="CanFitInDouble"></a>
136136
### CanFitInDouble
@@ -300,7 +300,7 @@ The parameter <i>b</i>
300300
is null.
301301

302302
* System.OutOfMemoryException:
303-
The exact result of the operation might be too big to fit in memory (or might require more than 2 gigabytes of memory to store).
303+
The exact result of the operation might be too big to fit in system memory (or might require more than 2 gigabytes of system memory to store).
304304

305305
<a id="FromByte_byte"></a>
306306
### FromByte
@@ -461,7 +461,7 @@ The parameter <i>b</i>
461461
is null.
462462

463463
* System.OutOfMemoryException:
464-
The exact result of the operation might be too big to fit in memory (or might require more than 2 gigabytes of memory to store).
464+
The exact result of the operation might be too big to fit in system memory (or might require more than 2 gigabytes of system memory to store).
465465

466466
<a id="Negate"></a>
467467
### Negate
@@ -597,7 +597,7 @@ The parameter <i>b</i>
597597
is null.
598598

599599
* System.OutOfMemoryException:
600-
The exact result of the operation might be too big to fit in memory (or might require more than 2 gigabytes of memory to store).
600+
The exact result of the operation might be too big to fit in system memory (or might require more than 2 gigabytes of system memory to store).
601601

602602
<a id="Subtract_PeterO_Cbor_CBORNumber"></a>
603603
### Subtract
@@ -622,7 +622,7 @@ The parameter <i>b</i>
622622
is null.
623623

624624
* System.OutOfMemoryException:
625-
The exact result of the operation might be too big to fit in memory (or might require more than 2 gigabytes of memory to store).
625+
The exact result of the operation might be too big to fit in system memory (or might require more than 2 gigabytes of system memory to store).
626626

627627
<a id="ToByteChecked"></a>
628628
### ToByteChecked

0 commit comments

Comments
 (0)