mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 11:12:29 +00:00
Compare commits
3 commits
def0513800
...
d1ea955ff1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1ea955ff1 | ||
|
|
5127106d3c | ||
|
|
0282ca061a |
2 changed files with 9 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef COMMON_MD5_HPP
|
||||
#define COMMON_MD5_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -69,10 +69,10 @@ void* CObjectHeap::Ptr(uint32_t index, uint32_t objSize, uint32_t heapObjects) {
|
|||
if (index >= heapObjects) {
|
||||
const char* format = "\"%s\", %s = %ld (0x%08X)";
|
||||
const uint8_t bytes[4] = {
|
||||
(index >> 24) & 0xFF,
|
||||
(index >> 16) & 0xFF,
|
||||
(index >> 8) & 0xFF,
|
||||
index & 0xFF
|
||||
static_cast<uint8_t>((index >> 24) & 0xFF),
|
||||
static_cast<uint8_t>((index >> 16) & 0xFF),
|
||||
static_cast<uint8_t>((index >> 8) & 0xFF),
|
||||
static_cast<uint8_t>(index & 0xFF)
|
||||
};
|
||||
|
||||
if (isprint(bytes[0])
|
||||
|
|
@ -107,10 +107,10 @@ void CObjectHeap::Delete(uint32_t index, uint32_t objSize, uint32_t heapObjects)
|
|||
if (index >= heapObjects) {
|
||||
const char* format = "\"%s\", %s = %ld (0x%08X)";
|
||||
const uint8_t bytes[4] = {
|
||||
(index >> 24) & 0xFF,
|
||||
(index >> 16) & 0xFF,
|
||||
(index >> 8) & 0xFF,
|
||||
index & 0xFF
|
||||
static_cast<uint8_t>((index >> 24) & 0xFF),
|
||||
static_cast<uint8_t>((index >> 16) & 0xFF),
|
||||
static_cast<uint8_t>((index >> 8) & 0xFF),
|
||||
static_cast<uint8_t>(index & 0xFF)
|
||||
};
|
||||
|
||||
if (isprint(bytes[0]) && isprint(bytes[1]) && isprint(bytes[2]) && isprint(bytes[3])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue