Method GetNonZeroBytes
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
GetNonZeroBytes(byte[])
Fills a supplied buffer with random nonzero bytes.
public void GetNonZeroBytes(byte[] buffer)
Parameters
buffer
byte[]Buffer to fill with random nonzero bytes.
GetNonZeroBytes(Span<byte>)
Fills a supplied memory region with random nonzero bytes.
public void GetNonZeroBytes(Span<byte> buffer)