AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Typedefs | Functions
alexaClientSDK::acsdkCodecUtils Namespace Reference

Binary codec utilities. More...

Namespaces

 test
 Test cases for Binary Codec Utilities.
 

Typedefs

typedef unsigned char Byte
 Byte data type. More...
 
typedef std::vector< ByteBytes
 Byte data block. More...
 

Functions

bool encodeBase64 (const Bytes &binary, std::string &base64String) noexcept
 Encodes binary data into string using Base64. More...
 
bool decodeBase64 (const std::string &base64String, Bytes &binary) noexcept
 Decodes binary data from string using Base64. More...
 
bool encodeHex (const Bytes &binary, std::string &hexString) noexcept
 
bool decodeHex (const std::string &hexString, Bytes &binary) noexcept
 Decodes binary data from string using hex. More...
 
static char mapValueToChar (uint32_t value) noexcept
 Maps binary value into character. More...
 

Detailed Description

Binary codec utilities.

See also
Binary Codec Utilities

Function Documentation

◆ mapValueToChar()

static char alexaClientSDK::acsdkCodecUtils::mapValueToChar ( uint32_t  value)
staticnoexcept

Maps binary value into character.

Maps 6-bit binary value into ASCII character for Base64 encoding.

Parameters
[in]valueBinary value to map into character. The value must be in range of 0..63 inclusive.
Returns
ASCII character.

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0