/********************************************************************* * Copyright (c) Intel Corporation 2019 - 2020 * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ #ifndef __UTILS_H__ #define __UTILS_H__ #include #include std::string util_encode_base64(std::vector str); std::vector util_decode_base64(std::string str); bool util_is_printable(std::string str); bool util_format_uuid(std::vector uuid_bytes, std::string& uuid_string); bool util_hex_string_to_bytes(std::string hex_string, std::vector& hex_bytes); bool util_bytes_to_hex_string(std::vector hex_bytes, std::string& hex_string); #endif