CurtHagenlocher opened a new pull request, #528: URL: https://github.com/apache/arrow-dotnet/pull/528
### What's changed? `StringArray.GetString` decodes straight from the value buffer, using a pointer computed from the value offsets. Unlike `GetBytes`, it doesn't slice the value span first, so the offsets are never checked against the buffer. Now it slices first and decodes from the slice. Inconsistent offsets throw `ArgumentOutOfRangeException`, the same as `GetBytes` and `LargeStringArray.GetString`. The single-pass decode from #334 is unchanged. A microbenchmark decoding 1,024 strings measured 17.6 µs with this change and 17.9 µs without it. ### Testing New `StringArrayTests.GetString` cases: - offsets that `GetBytes` rejects are also rejected by `GetString` - a value that ends exactly at the end of an unpadded value buffer still decodes All Apache.Arrow.Tests pass on net8.0, net462 and net472. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
