-
Notifications
You must be signed in to change notification settings - Fork 3
Refactors Gulliver repository for an "intermediate" 2.0 release #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Now targeting .NET Standard 2.0, .NET 8, and .NET 9. Dropping support for .NET Standard 1.3 This "modernized" version is intended to be a stutter step before any API changes before a version 3 - Updated solution and projects - Structure repository project layout - Add linting, formatting, and and applied changes - Update dependencies and removes dependencies - Adds and configure various GitHub actions for building, release, and updates - Adds miscellaneous files
…sion2RefactorTarget
|
Looks good, only other thing I noticed missing is that .editorconfig doesn't have analyzer rules yet even though you deleted the ruleset files. |
scj7t4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor spelling / documentation, might not be worth fixing in this PR
src/Gulliver/ByteArrayUtils.cs
Outdated
| public static byte[] AppendBytes([NotNull] this byte[] source, | ||
| int count, | ||
| byte element = 0x00) | ||
| /// <returns></returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty returns doc
src/Gulliver/ByteArrayUtils.cs
Outdated
| /// <param name="right">the right side operand</param> | ||
| public static (byte[] left, byte[] right) AppendShortest([NotNull] byte[] left, | ||
| [NotNull] byte[] right) | ||
| /// <returns></returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty returns doc
src/Gulliver/ByteArrayUtils.cs
Outdated
| /// <param name="right">the right side operand</param> | ||
| public static (byte[] left, byte[] right) PrependShortest([NotNull] byte[] left, | ||
| [NotNull] byte[] right) | ||
| /// <returns></returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty returns doc
| /// <param name="right">the right side operand</param> | ||
| public static int CompareUnsignedBigEndian([NotNull] byte[] left, | ||
| [NotNull] byte[] right) | ||
| /// <returns></returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty returns doc
| /// </summary> | ||
| /// <param name="input">the input bytes</param> | ||
| public static int BigEndianEffectiveLength([NotNull] this byte[] input) | ||
| /// <returns></returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty returns doc
| } | ||
| // long.MinValue (-9223372036854775808) is a special case | ||
| // getting the absolute value of a the minimum value of a twos complement number is invalid and will cause a OverflowException | ||
| // We must therefor build the equivalent of abs(long.MinValue) big endian bytes manually |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
therefore
There are actually 2
|
Now targeting .NET Standard 2.0, .NET 8, and .NET 9. Dropping support for .NET Standard 1.3
This "modernized" version is intended to be a stutter step before any API changes for a potential version 3