RESTinio
|
#include <ws_protocol_validator.hpp>
Public Types | |
using | mask_array_t = std::array< uint8_t, websocket_masking_key_size > |
Public Member Functions | |
unmasker_t ()=default | |
unmasker_t (uint32_t masking_key) | |
uint8_t | unmask_byte (uint8_t masked_byte) |
Do unmask operation. More... | |
void | reset (uint32_t masking_key) |
Reset to initial state. More... | |
Public Attributes | |
mask_array_t | m_mask |
Bytes array with masking key. More... | |
size_t | m_processed_bytes_count { 0 } |
Processed bytes counter. More... | |
This class is need to unmask byte sequences.
Mask is 32 bit key.
Definition at line 119 of file ws_protocol_validator.hpp.
using restinio::websocket::basic::impl::unmasker_t::mask_array_t = std::array< uint8_t, websocket_masking_key_size> |
Definition at line 164 of file ws_protocol_validator.hpp.
|
default |
|
inline |
Definition at line 123 of file ws_protocol_validator.hpp.
|
inline |
Reset to initial state.
Definition at line 148 of file ws_protocol_validator.hpp.
|
inline |
Do unmask operation.
Definition at line 141 of file ws_protocol_validator.hpp.
mask_array_t restinio::websocket::basic::impl::unmasker_t::m_mask |
Bytes array with masking key.
Definition at line 167 of file ws_protocol_validator.hpp.
size_t restinio::websocket::basic::impl::unmasker_t::m_processed_bytes_count { 0 } |
Processed bytes counter.
It needs for taking remainder after division on 4. Result of this operation is index of value in mask array for next unmask operation.
Definition at line 174 of file ws_protocol_validator.hpp.