1 ///
2 /// \file SoapySDR/Formats.hpp
3 ///
4 /// Format strings used in the stream API.
5 ///
6 /// \copyright
7 /// Copyright (c) 2015-2015 Josh Blum
8 /// SPDX-License-Identifier: BSL-1.0
9 ///
10 
11 #pragma once
12 #include <SoapySDR/Config.h>
13 #include <SoapySDR/Formats.h>
14 #include <string>
15 #include <cstddef>
16 
17 namespace SoapySDR
18 {
19 
20 /*!
21  * Get the size of a single element in the specified format.
22  * \param format a supported format string
23  * \return the size of an element in bytes
24  */
25 SOAPY_SDR_API size_t formatToSize(const std::string &format);
26 
27 }
28