#include <src/main/decaf/internal/util/HexStringParser.h>
|
| HexStringParser (int exponentWidth, int mantissaWidth) |
| Create a new HexParser. More...
|
|
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. More...
|
|
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 |
virtual decaf::internal::util::HexStringParser::~HexStringParser |
( |
| ) |
|
|
inlinevirtual |
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
static double decaf::internal::util::HexStringParser::parseDouble |
( |
const std::string & |
hexString | ) |
|
|
static |
static float decaf::internal::util::HexStringParser::parseFloat |
( |
const std::string & |
hexString | ) |
|
|
static |
The documentation for this class was generated from the following file: