use std::wstring_view in SessionIdManager::DecodeToken(...) method
This commit is contained in:
@@ -133,7 +133,7 @@ public:
|
||||
*
|
||||
*/
|
||||
bool EncodeToken(size_t id, unsigned int index, time_t cur_utc_time, std::wstring & token);
|
||||
bool DecodeToken(const std::wstring & token, size_t & id, unsigned int & index);
|
||||
bool DecodeToken(const std::wstring_view & token, size_t & id, unsigned int & index);
|
||||
|
||||
|
||||
private:
|
||||
@@ -170,6 +170,7 @@ private:
|
||||
void AppendXor(std::string & str);
|
||||
void CopyString(const std::string & in, std::wstring & out);
|
||||
void CopyString(const std::wstring & in, std::string & out);
|
||||
void CopyString(const std::wstring_view & in, std::string & out);
|
||||
bool Encode(std::string & str);
|
||||
bool DecodeToken(size_t key, size_t & id, unsigned int & index);
|
||||
bool DecodeToken(size_t & id, unsigned int & index);
|
||||
|
||||
Reference in New Issue
Block a user