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
2025-11-17 08:40:06 -05:00
2026-08-28 13:00:14 -04:00
2026-08-28 13:00:14 -04:00
2026-08-28 13:00:14 -04:00
2026-08-20 11:40:02 -04:00
2026-08-28 13:00:14 -04:00
2026-10-12 09:47:53 -04:00
2026-08-28 13:00:14 -04:00
2026-10-12 09:47:53 -04:00
2026-08-28 13:00:14 -04:00
2026-10-12 09:47:53 -04:00
2026-08-28 13:00:14 -04:00
2026-08-28 13:00:14 -04:00
2026-08-28 13:00:14 -04:00
2026-08-28 13:00:14 -04:00
2026-10-12 09:47:53 -04:00
2026-01-25 17:04:11 -05:00
2026-07-10 09:54:37 -04:00
2026-03-23 10:50:09 -04:00

SabreTools.IO

Build and Test

This meta-library contains core functionality classes that is used by other SabreTools projects. The original version of the package which includes all namespaces below is in the SabreTools.IO.Meta directory.

Find the link to the Nuget package here.

Namespaces

Below are a list of the included namespaces with links to their README files:

Releases

For the most recent stable build, download the latest release here: Releases Page

For the latest WIP build here: Rolling Release

Description
No description provided
Readme 2.8 MiB
Latest
2025-11-14 01:02:30 +00:00
Languages
C# 99.8%
Shell 0.1%
PowerShell 0.1%