Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cRandomBlock Class Reference

#include <cRandom.h>

Inheritance diagram for Gray::cRandomBlock:
Gray::IRandomNoise

Public Member Functions

 cRandomBlock (const void *pData, size_t nSize) noexcept
 
virtual HRESULT GetNoise (void *pData, size_t len) override
 fill array with random bytes. return # bytes filled. More...
 

Public Attributes

cMemBlock m_Src
 
size_t m_nOffset
 

Detailed Description

Hold a blob of random data. Acts as a one time cipher. Supply test 'random' data. (e.g. maybe not random at all)

Constructor & Destructor Documentation

◆ cRandomBlock()

Gray::cRandomBlock::cRandomBlock ( const void *  pData,
size_t  nSize 
)
inlinenoexcept

Member Function Documentation

◆ GetNoise()

virtual HRESULT Gray::cRandomBlock::GetNoise ( void *  pData,
size_t  iSize 
)
inlineoverridevirtual

fill array with random bytes. return # bytes filled.

Get sample random data bytes

Implements Gray::IRandomNoise.

Member Data Documentation

◆ m_nOffset

size_t Gray::cRandomBlock::m_nOffset

◆ m_Src

cMemBlock Gray::cRandomBlock::m_Src

The documentation for this class was generated from the following file: