RecyclableMemoryStream
No edit summary |
(Updated Edited template to July 12, 2025.) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Are you getting an error | <message>Write the content here to display this box</message> | ||
Are you getting an error of a missing Microsoft.IO.RecyclableMemoryStream or missing System.Buffers? | |||
Add Nuget packages Microsoft.IO.RecyclableMemoryStream and | Add Nuget packages Microsoft.IO.RecyclableMemoryStream and Nuget packages System.Buffers. | ||
These 2 assemblies are used to minimize the memory pressure | These 2 assemblies are used to minimize the memory pressure:<blockquote>private static ArrayPool<char> _pool = ArrayPool<char>.Shared;</blockquote><blockquote>_pool.Rent</blockquote>[[File:2020-03-01 17h15 27.png|none|thumb|812x812px]] | ||
private static ArrayPool<char> _pool = ArrayPool<char>.Shared; | |||
_pool.Rent | |||
[[File:2020-03-01 17h15 27.png|none|thumb|812x812px]] | |||
[[Category:MDriven Server]] | [[Category:MDriven Server]] | ||
{{Edited|July|12|2025}} |
Latest revision as of 06:01, 20 January 2025
This page was created by Hans.karlsen on 2019-10-14. Last edited by Edgar on 2025-01-20.
Are you getting an error of a missing Microsoft.IO.RecyclableMemoryStream or missing System.Buffers?
Add Nuget packages Microsoft.IO.RecyclableMemoryStream and Nuget packages System.Buffers.
These 2 assemblies are used to minimize the memory pressure:
private static ArrayPool<char> _pool = ArrayPool<char>.Shared;
_pool.Rent