| 36 | } |
| 37 | |
| 38 | void PrintASCIIByte(uint8_t Byte) { |
| 39 | if (Byte == '\\') |
| 40 | Printf("\\\\"); |
| 41 | else if (Byte == '"') |
| 42 | Printf("\\\""); |
| 43 | else if (Byte >= 32 && Byte < 127) |
| 44 | Printf("%c", Byte); |
| 45 | else |
| 46 | Printf("\\%03o", Byte); |
| 47 | } |
| 48 | |
| 49 | void PrintASCII(const uint8_t *Data, size_t Size, const char *PrintAfter) { |
| 50 | for (size_t i = 0; i < Size; i++) |