MCPcopy Create free account
hub / github.com/LUX-Core/lux / WordToString

Function WordToString

src/cryptopp/misc.h:2241–2247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2239
2240template <class T>
2241std::string WordToString(T value, ByteOrder order = BIG_ENDIAN_ORDER)
2242{
2243 if (!NativeByteOrderIs(order))
2244 value = ByteReverse(value);
2245
2246 return std::string((char *)&value, sizeof(value));
2247}
2248
2249template <class T>
2250T StringToWord(const std::string &str, ByteOrder order = BIG_ENDIAN_ORDER)

Callers 2

AddOutputChannelMethod · 0.85
ProcessInputQueuesMethod · 0.85

Calls 2

NativeByteOrderIsFunction · 0.85
ByteReverseFunction · 0.70

Tested by

no test coverage detected