You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-24Lines changed: 7 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,8 @@ For example, classes and structs in C# cannot have ignored members when marshall
16
16
The `EndianBinaryPrimitives` static class which resembles `System.Buffers.Binary.BinaryPrimitives` is an API that converts to/from data types using `Span<T>`/`ReadOnlySpan<T>` with specific endianness, rather than streams.
17
17
18
18
----
19
-
## Changelog For v2.0.1
20
-
Check the comment on [the release page](https://github.com/Kermalis/EndianBinaryIO/releases/tag/v2.0.1)!
21
-
22
-
## Changelog For v2.0.0
23
-
Check the comment on [the release page](https://github.com/Kermalis/EndianBinaryIO/releases/tag/v2.0.0)!
19
+
## Changelog For v2.1.0
20
+
Check the comment on [the release page](https://github.com/Kermalis/EndianBinaryIO/releases/tag/v2.1.0)!
24
21
25
22
----
26
23
## 🚀 Usage:
@@ -48,6 +45,7 @@ class MyBasicObj
48
45
publicShortSizedEnumType { get; set; }
49
46
publicshortVersion { get; set; }
50
47
publicDateTimeDate { get; set; }
48
+
publicInt128Int128 { get; set; }
51
49
52
50
// Property that is ignored when reading and writing
53
51
[BinaryIgnore]
@@ -81,6 +79,7 @@ And assume these are our input bytes (in little endian):
* Added TrimNullTerminators(ref char[] chars) and TrimNullTerminators(ref Span<char> chars) to EndianBinaryPrimitives which will remove all '\0' from the end
33
-
* Added ReadSBytes(ReadOnlySpan<byte> src, Span<sbyte> dest) and WriteSBytes(Span<byte> dest, ReadOnlySpan<sbyte> src) to EndianBinaryPrimitives
34
-
* Added heavily optimized enum methods to EndianBinaryPrimitives that use the same optimization techniques as the ones in EndianBinaryReader and EndianBinaryWriter
35
-
* Added PeekBytes(Span<byte> dest) to EndianBinaryReader
31
+
<PackageReleaseNotes># Version 2.1.0 Changelog:
32
+
* .NET 7.0 support only.
33
+
* Added methods for reading/writing `Int128`/`UInt128`.
34
+
* Added `TrimNullTerminators(ref ReadOnlySpan<char> chars)` to `EndianBinaryPrimitives`.
35
+
* Added "unsafe" methods to `EndianBinaryPrimitives` that read/write to/from `ReadOnlySpan<T>`/`Span<T>`. These are similar to their non-`_Unsafe` counterparts, aside from the fact that they don't check for errors. Their goal is performance.
36
36
37
-
No breaking changes from v2.0.0</PackageReleaseNotes>
37
+
No breaking changes from v2.0.1</PackageReleaseNotes>
0 commit comments