#include <src/main/decaf/internal/util/HexStringParser.h>
|
| HexStringParser (int exponentWidth, int mantissaWidth) |
| Create a new HexParser.
|
|
virtual | ~HexStringParser () |
|
long long | parse (const std::string &hexString) |
| Parses a hex string using the specs given in the constructor and returns a long long with the bits of the parsed string, the caller can then convert those to a float or doulbe as needed.
|
|
◆ HexStringParser()
decaf::internal::util::HexStringParser::HexStringParser |
( |
int | exponentWidth, |
|
|
int | mantissaWidth ) |
Create a new HexParser.
- Parameters
-
exponentWidth | - Width of the exponent for the type to parse |
mantissaWidth | - Width of the mantissa for the type to parse |
◆ ~HexStringParser()
virtual decaf::internal::util::HexStringParser::~HexStringParser |
( |
| ) |
|
|
inlinevirtual |
◆ parse()
long long decaf::internal::util::HexStringParser::parse |
( |
const std::string & | hexString | ) |
|
Parses a hex string using the specs given in the constructor and returns a long long with the bits of the parsed string, the caller can then convert those to a float or doulbe as needed.
- Parameters
-
hexString | - string to parse |
- Returns
- the bits parsed from the string
◆ parseDouble()
static double decaf::internal::util::HexStringParser::parseDouble |
( |
const std::string & | hexString | ) |
|
|
static |
◆ parseFloat()
static float decaf::internal::util::HexStringParser::parseFloat |
( |
const std::string & | hexString | ) |
|
|
static |
The documentation for this class was generated from the following file: