ByteSeq class final
#include <descriptor.hpp>
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
Public functions
- auto is_wildcard(sequence_type::size_type i) const -> bool
- TRUE if byte on position
iof the sequence is a wildcard. -
auto matches(sequence_type::size_type i,
byte_
type b) const -> bool - TRUE if byte on position
iof the sequence has valueb. - auto swap(ByteSeq& rhs) -> ByteSeq&
- Swap this instance with another.
Function documentation
arcsdec:: 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:: 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:: ByteSeq:: is_wildcard(sequence_type::size_type i) const
TRUE if byte on position i of the sequence is a wildcard.
| Parameters | |
|---|---|
| i in | Position index |
| Returns | TRUE if byte on position i of the sequence is a wildcard, otherwise FALSE. |