arcsdec::v_1_0_0::ByteSeq class

Byte sequence with or without wildcards.

Public types

using byte_type = unsigned char
Type to represent an actual byte.

Public static variables

static byte_type max_byte_value constexpr
Numerical maximum of the byte_type.

Constructors, destructors, conversion operators

ByteSeq(sequence_type::size_type length)
Constructor for an empty sequence of specified length.
ByteSeq(std::initializer_list<unsigned> values)
Constructor using a sequence of byte values and wildcards.

Public functions

auto is_wildcard(sequence_type::size_type i) const -> bool
TRUE if byte on position i of the sequence is a wildcard.
auto matches(sequence_type::size_type i, byte_type b) const -> bool
TRUE if byte on position i of the sequence has value b.
auto swap(ByteSeq& rhs) -> ByteSeq&
Swap this instance with another.

Function documentation

arcsdec::v_1_0_0::ByteSeq::ByteSeq(sequence_type::size_type length)

Constructor for an empty sequence of specified length.

Parameters
length in Actual length for a yet empty sequence

arcsdec::v_1_0_0::ByteSeq::ByteSeq(std::initializer_list<unsigned> values)

Constructor using a sequence of byte values and wildcards.

Parameters
values in List of byte values with or without wildcards.

bool arcsdec::v_1_0_0::ByteSeq::is_wildcard(sequence_type::size_type i) const

TRUE if byte on position i of the sequence is a wildcard.

Returns TRUE if byte on position i of the sequence is a wildcard, otherwise FALSE.

bool arcsdec::v_1_0_0::ByteSeq::matches(sequence_type::size_type i, byte_type b) const

TRUE if byte on position i of the sequence has value b.

Returns TRUE if byte on position i of the sequence has value b, otherwise FALSE.

ByteSeq& arcsdec::v_1_0_0::ByteSeq::swap(ByteSeq& rhs)

Swap this instance with another.

Parameters
rhs in The other instance to swap with