Table of Contents

Enum MemoryStreamSlimZeroBufferOption

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

Options for how to handle memory clearing when a memory buffer is not in use.

public enum MemoryStreamSlimZeroBufferOption

Fields

OutOfBand = 0

Zero out buffers out-of-band after they are released. Newly allocated buffers will also be zeroed out when they are acquired as needed. This is the default value for Dynamic streams.

OnRelease = 1

Zero out buffers inline as part of the release process. Newly allocated buffers will also be zeroed out when they are acquired as needed. This is the set value for Fixed streams.

None = 2

Do not zero out buffers. This is the most efficient option, but it may leave sensitive data in memory that is sitting in the buffer pool or in stream buffer space that is not yet in use by a stream.