https://github.com/soenneker/soenneker.httpcontents.pooledbytearrays
A custom HttpContent that wraps a rented byte array from an ArrayPool, writes only the valid byte range to outgoing streams, and returns the buffer to the pool when disposed to reduce GC allocations.
https://github.com/soenneker/soenneker.httpcontents.pooledbytearrays
array arraypool byte csharp dotnet httpcontent httpcontents object pooled pooledbytearraycontent pooledbytearrays
Last synced: 3 months ago
JSON representation
A custom HttpContent that wraps a rented byte array from an ArrayPool, writes only the valid byte range to outgoing streams, and returns the buffer to the pool when disposed to reduce GC allocations.
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.httpcontents.pooledbytearrays
- Owner: soenneker
- License: mit
- Created: 2026-01-12T15:19:40.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-03-04T23:40:58.000Z (3 months ago)
- Last Synced: 2026-03-05T00:42:31.669Z (3 months ago)
- Topics: array, arraypool, byte, csharp, dotnet, httpcontent, httpcontents, object, pooled, pooledbytearraycontent, pooledbytearrays
- Language: C#
- Homepage: https://soenneker.com
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/soenneker.httpcontents.pooledbytearrays/)
[](https://github.com/soenneker/soenneker.httpcontents.pooledbytearrays/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.httpcontents.pooledbytearrays/)
[](https://github.com/soenneker/soenneker.httpcontents.pooledbytearrays/actions/workflows/codeql.yml)
#  Soenneker.HttpContents.PooledByteArrays
### A custom HttpContent that wraps a rented byte array from an ArrayPool, writes only the valid byte range to outgoing streams, and returns the buffer to the pool when disposed to reduce GC allocations.
## Installation
```
dotnet add package Soenneker.HttpContents.PooledByteArrays
```