MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / fromPetscii

Function fromPetscii

lib/vfs/cbmfs.cc:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17static std::string fromPetscii(const Bytes& bytes)
18{
19 std::stringstream ss;
20
21 for (uint8_t b : bytes)
22 {
23 if ((b >= 32) && (b <= 126))
24 ss << (char)tolower(b);
25 else
26 ss << fmt::format("%{:2x}", b);
27 }
28
29 return ss.str();
30}
31
32static std::string toMode(uint8_t cbm_type)
33{

Callers 2

CbmfsDirentMethod · 0.85
DirectoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected