AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Functions | Variables
alexaClientSDK::avsCommon::utils::id3Tags Namespace Reference


std::size_t getID3v2TagSize (const unsigned char *data, std::size_t bufferSize)


constexpr unsigned char ID3V2TAG_IDENTIFIER [] = {'I', 'D', '3'}
 Identifier for a ID3v2 Tag. More...
constexpr unsigned int ID3V2TAG_HEADER_SIZE = 10
 The length of a ID3v2 header. More...

Function Documentation

◆ getID3v2TagSize()

std::size_t alexaClientSDK::avsCommon::utils::id3Tags::getID3v2TagSize ( const unsigned char *  data,
std::size_t  bufferSize 

A function that reads from a unsigned char buffer and returns the length of an ID3v2 tag. This includes checking if the header size is valid.

dataThe pointer to the unsigned char buffer.
bufferSizeThe length of the buffer.
The size of the ID3v2 tag. Return 0 is the tag is not found in buffer.

Variable Documentation


constexpr unsigned int alexaClientSDK::avsCommon::utils::id3Tags::ID3V2TAG_HEADER_SIZE = 10

The length of a ID3v2 header.


constexpr unsigned char alexaClientSDK::avsCommon::utils::id3Tags::ID3V2TAG_IDENTIFIER[] = {'I', 'D', '3'}

Identifier for a ID3v2 Tag.

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