MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / scHttpHexValue

Function scHttpHexValue

Libraries/Http/HttpConnection.cpp:13–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace
12{
13static bool scHttpHexValue(char current, uint8_t& value)
14{
15 if (current >= '0' and current <= '9')
16 {
17 value = static_cast<uint8_t>(current - '0');
18 return true;
19 }
20 if (current >= 'a' and current <= 'f')
21 {
22 value = static_cast<uint8_t>(10 + current - 'a');
23 return true;
24 }
25 if (current >= 'A' and current <= 'F')
26 {
27 value = static_cast<uint8_t>(10 + current - 'A');
28 return true;
29 }
30 return false;
31}
32
33static bool scHttpTransferEncodingIsChunked(SC::StringSpan value)
34{

Callers 1

processBodyDataMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected