Table of Contents

Method ReleaseMemoryBuffers

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

ReleaseMemoryBuffers()

Requests that all large memory buffers managed by MemoryStreamSlim instances should be released back to the system as soon as possible.

public static void ReleaseMemoryBuffers()

Remarks

This is a hint to the system that the caller requests that large memory segments be released, but it is not guaranteed that the memory will be released immediately. As soon as all currently in-use MemoryStreamSlim instances are disposed or finalized, the currently allocated memory buffers will be released.