10 Commits

Author SHA1 Message Date
Matt Nadareski
b325212664 Bump version 2026-11-11 11:18:54 +01:00
Matt Nadareski
70e6bdd41c Add .NET 11 support 2026-11-11 10:29:50 +01:00
gmipf
f6b6aa1e14 Allow 0-byte reads at the end of a byte array (#3)
* Allow 0-byte reads at the end of a byte array

ReadBytes(ref offset, 0) threw ArgumentOutOfRangeException when offset
was equal to the array length, before the 0-byte case was handled. The
same happened for a 0-byte read from an empty array, and TryReadBytes
with a count of 0 at the end threw instead of returning true. The offset
check now accepts the end of the array for a 0-byte read only; reads past
the end still throw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Handle 0-byte reads before the offset check

Same order as the stream version of ReadExactlyToBuffer, applied to
both byte array copies (Numerics.Extensions and IO.Extensions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 21:20:30 -04:00
Matt Nadareski
8695e58c27 Bump version 2026-08-28 13:00:14 -04:00
Matt Nadareski
78c6c1b6f6 Bump version 2026-07-10 11:10:33 -04:00
Matt Nadareski
96d7141264 Bump version 2026-05-14 08:51:35 -04:00
Matt Nadareski
9cdee80bed Bump version 2026-03-24 17:54:11 -04:00
Matt Nadareski
0788d149bb Forgot to add to the README 2026-03-22 17:09:31 -04:00
Matt Nadareski
34ed3322c4 Move some math/numeric byte array extensions 2026-03-22 15:22:46 -04:00
Matt Nadareski
add545ec55 Numerics extensions to new namespace 2026-03-21 20:57:03 -04:00