VOOZH about

URL: https://www.nuget.org/packages/Soenneker.Utils.PooledStringBuilders/

⇱ NuGet Gallery | Soenneker.Utils.PooledStringBuilders 4.0.25


ο»Ώ

πŸ‘ Image
Soenneker.Utils.PooledStringBuilders 4.0.25

Prefix Reserved
dotnet add package Soenneker.Utils.PooledStringBuilders --version 4.0.25
 
 
NuGet\Install-Package Soenneker.Utils.PooledStringBuilders -Version 4.0.25
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.PooledStringBuilders" Version="4.0.25" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.PooledStringBuilders" Version="4.0.25" />
 
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.PooledStringBuilders" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.PooledStringBuilders --version 4.0.25
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.PooledStringBuilders, 4.0.25"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Utils.PooledStringBuilders@4.0.25
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.PooledStringBuilders&version=4.0.25
 
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.PooledStringBuilders&version=4.0.25
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

πŸ‘ alternate text is missing from this package README image
πŸ‘ alternate text is missing from this package README image
πŸ‘ alternate text is missing from this package README image
πŸ‘ alternate text is missing from this package README image

πŸ‘ alternate text is missing from this package README image
Soenneker.Utils.PooledStringBuilders

Tiny, fast ref struct string builder. Backed by ArrayPool<char>. Low allocations. Short-lived use.

Install

dotnet add package Soenneker.Utils.PooledStringBuilders

Example

using Soenneker.Utils.PooledStringBuilders;

using var sb = new PooledStringBuilder(128);

sb.Append("Hello, ");
sb.Append(name);
sb.Append(' ');
sb.Append(id); // ISpanFormattable path, no boxing
sb.AppendLine();

string s = sb.ToString(); // returns string + returns buffer

Cheatsheet

  • new PooledStringBuilder(int capacity = 128)
  • Append(char), Append(string?), Append(ReadOnlySpan<char>)
  • Append<T>(T value, ReadOnlySpan<char> fmt = default, IFormatProvider? prov = null) where T : ISpanFormattable
  • AppendSpan(int length) ? write directly into the buffer
  • AppendLine(), AppendSeparatorIfNotEmpty(char)
  • Length, Capacity, Clear()
  • ToString() (keep using; you must Dispose() later)
  • ToStringAndDispose(bool clear = false) (one-shot finish)
  • Dispose() / Dispose(bool clear)

Notes

  • ref struct ? stack-only. DonοΏ½t capture, box, store in fields, or cross await.
  • Dispose when done. using should be used, or there is ToStringAndDispose(). Don't use both.
  • Handling secrets? Use ToStringAndDispose(clear: true) to zero the array before returning to the pool.
  • Not thread-safe. Keep it short-lived and single-scope.
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on Soenneker.Utils.PooledStringBuilders:

Package Downloads
Soenneker.Redis.Util

The general purpose utility library leveraging Redis for all of your caching needs

Soenneker.Cosmos.Repository

A data persistence abstraction layer for Cosmos DB

Soenneker.Extensions.Spans.Readonly.Chars

A collection of helpful ReadOnlySpan (char) extension methods

Soenneker.Extensions.HttpContent

A collection of helpful HttpContent extension methods

Soenneker.Utils.Dotnet

A utility library for the dotnet executable

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.25 0 6/18/2026
4.0.22 419,213 4/23/2026
4.0.21 240,967 3/14/2026
4.0.16 114,589 3/10/2026
4.0.15 56,616 3/9/2026
4.0.14 681 3/9/2026
4.0.13 91,863 3/4/2026
4.0.12 142,277 2/21/2026
4.0.11 4,986 2/21/2026
4.0.10 92,122 2/4/2026
4.0.9 94,504 1/8/2026
4.0.8 17,946 1/2/2026
4.0.7 36,903 11/20/2025
4.0.6 24,904 10/29/2025
3.0.5 3,296 10/23/2025
3.0.4 35,705 9/16/2025
3.0.3 357 9/16/2025
3.0.2 1,656 9/15/2025
3.0.1 334 9/15/2025

Update actions/checkout action to v7 (#216)

Automatically merged