Template Class UniformSequence

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class UniformSequence : public ska::pst::common::ByteSequence

Generates a uniform sequence of char values.

Public Functions

explicit UniformSequence(const T value)

Construct a new Uniform Sequence object.

~UniformSequence() = default

Destroy the Uniform Sequence object.

void set_uniform_value(const T value)

Set the uniform value to be used.

Parameters

value – uniform value to be used

virtual void generate(char *buffer, uint64_t bufsz) override

Generate a uniform data sequence.

Parameters
  • buffer – pointer to memory to which the uniform sequence should be written

  • bufsz – number of bytes to write to the buffer.

virtual bool validate(char *buffer, uint64_t bufsz) override

Compare contents of buffer to expected random sequence.

Parameters
  • buffer – pointer to buffer containing samples to be validated

  • bufsz – size of the buffer to be validated

Returns

true if all samples are valid

Returns

false if any samples are invalid