mirror of
https://github.com/oxen-io/oxen-mq.git
synced 2023-12-13 21:00:31 +01:00
Fix backwards logic on overlapping ranges comment
This commit is contained in:
parent
45f358ab5f
commit
ae884d2f13
|
@ -136,7 +136,7 @@ constexpr bool is_base32z(std::string_view s) { return is_base32z<>(s); }
|
||||||
|
|
||||||
/// Converts a sequence of base32z digits to bytes. Undefined behaviour if any characters are not
|
/// Converts a sequence of base32z digits to bytes. Undefined behaviour if any characters are not
|
||||||
/// valid base32z alphabet characters. It is permitted for the input and output ranges to overlap
|
/// valid base32z alphabet characters. It is permitted for the input and output ranges to overlap
|
||||||
/// as long as `out` is no earlier than `begin`. Note that if you pass in a sequence that could not
|
/// as long as `out` is no later than `begin`. Note that if you pass in a sequence that could not
|
||||||
/// have been created by a base32z encoding of a byte sequence, we treat the excess bits as if they
|
/// have been created by a base32z encoding of a byte sequence, we treat the excess bits as if they
|
||||||
/// were not provided.
|
/// were not provided.
|
||||||
///
|
///
|
||||||
|
|
|
@ -165,7 +165,7 @@ constexpr bool is_base64(std::string_view s) { return is_base64(s.begin(), s.end
|
||||||
|
|
||||||
/// Converts a sequence of base64 digits to bytes. Undefined behaviour if any characters are not
|
/// Converts a sequence of base64 digits to bytes. Undefined behaviour if any characters are not
|
||||||
/// valid base64 alphabet characters. It is permitted for the input and output ranges to overlap as
|
/// valid base64 alphabet characters. It is permitted for the input and output ranges to overlap as
|
||||||
/// long as `out` is no earlier than `begin`. Trailing padding characters are permitted but not
|
/// long as `out` is no later than `begin`. Trailing padding characters are permitted but not
|
||||||
/// required.
|
/// required.
|
||||||
///
|
///
|
||||||
/// It is possible to provide "impossible" base64 encoded values; for example "YWJja" which has 30
|
/// It is possible to provide "impossible" base64 encoded values; for example "YWJja" which has 30
|
||||||
|
|
|
@ -131,7 +131,7 @@ constexpr char from_hex_pair(unsigned char a, unsigned char b) noexcept { return
|
||||||
|
|
||||||
/// Converts a sequence of hex digits to bytes. Undefined behaviour if any characters are not in
|
/// Converts a sequence of hex digits to bytes. Undefined behaviour if any characters are not in
|
||||||
/// [0-9a-fA-F] or if the input sequence length is not even: call `is_hex` first if you need to
|
/// [0-9a-fA-F] or if the input sequence length is not even: call `is_hex` first if you need to
|
||||||
/// check. It is permitted for the input and output ranges to overlap as long as out is no earlier
|
/// check. It is permitted for the input and output ranges to overlap as long as out is no later
|
||||||
/// than begin.
|
/// than begin.
|
||||||
template <typename InputIt, typename OutputIt>
|
template <typename InputIt, typename OutputIt>
|
||||||
void from_hex(InputIt begin, InputIt end, OutputIt out) {
|
void from_hex(InputIt begin, InputIt end, OutputIt out) {
|
||||||
|
|
Loading…
Reference in a new issue