Skip to content

Commit 958ee47

Browse files
committed
Version 4.5.2
1 parent 28f308a commit 958ee47

File tree

3 files changed

+1162
-1162
lines changed

3 files changed

+1162
-1162
lines changed

CBOR.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Version 4.5:
1616
- Add support for deserializing CBOR objects to IReadOnlyList, IReadOnlyCollection, and ReadOnlyDictionary
1717

1818
Note that after version 4.5x, the CBOR library&apos;s repository will stop including special projects for .NET 2.0 and .NET 4.0, leaving the .NET-Standard project for building the library.</releaseNotes><summary></summary><license type='expression'>CC0-1.0</license><projectUrl>https://github.com/peteroupc/CBOR</projectUrl><authors>Peter Occil</authors><description>A C# implementation of Concise Binary Object Representation (CBOR), a general-purpose binary data format defined in RFC 8949.</description><owners>Peter Occil</owners><title>CBOR (Concise Binary Object Representation)</title><tags>cbor data serialization binary json</tags><dependencies><group targetFramework='.NETStandard1.0'><dependency id='PeterO.URIUtility' version='1.0.0' /><dependency id='PeterO.Numbers' version='1.8.2' /></group><group targetFramework='.NETFramework2.0'><dependency id='PeterO.URIUtility' version='1.0.0' /><dependency id='PeterO.Numbers' version='1.8.2' /></group><group targetFramework='.NETFramework4.0'><dependency id='PeterO.URIUtility' version='1.0.0' /><dependency id='PeterO.Numbers' version='1.8.2' /></group></dependencies></metadata><files><file src='CBOR/bin/Release/netstandard1.0/CBOR.dll' target='/lib/netstandard1.0' /><file src='CBOR/bin/Release/netstandard1.0/CBOR.xml' target='/lib/netstandard1.0' /><file src='CBOR20/bin/Release/CBOR.dll' target='/lib/net20' /><file src='CBOR20/bin/Release/CBOR.xml' target='/lib/net20' /><file src='CBOR40/bin/Release/CBOR.dll' target='/lib/net40' /><file src='CBOR40/bin/Release/CBOR.xml' target='/lib/net40' /></files></package
19-
>
19+
>

CBORTest/CBORGenerator.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,19 @@ private void GenerateSmall(IRandomGenExtended r, int depth, ByteWriter bs) {
142142
GenerateArgument(r, 0, r.GetInt32(100), bs);
143143
} else if (v < 35) {
144144
bs.Write(0x41);
145-
bs.Write(0x20);
145+
bs.Write(0x20);
146146
} else if (v < 45) {
147147
bs.Write(0x41);
148-
bs.Write(0x20);
148+
bs.Write(0x20);
149149
} else if (v < 50) {
150150
bs.Write(0x81);
151-
this.GenerateSmall(r, depth + 1, bs);
151+
this.GenerateSmall(r, depth + 1, bs);
152152
} else if (v < 53) {
153153
bs.Write(0xa2);
154-
bs.Write(0xf7);
155-
bs.Write(0xf6);
156-
this.GenerateSmall(r, depth + 1, bs);
157-
bs.Write(0xf5);
154+
bs.Write(0xf7);
155+
bs.Write(0xf6);
156+
this.GenerateSmall(r, depth + 1, bs);
157+
bs.Write(0xf5);
158158
} else if (v < 80) {
159159
bs.Write(r.GetInt32(0x40));
160160
} else if (v < 100) {
@@ -291,4 +291,4 @@ public byte[] Generate(IRandomGenExtended random) {
291291
return ret;
292292
}
293293
}
294-
}
294+
}

0 commit comments

Comments
 (0)