ATLAS Offline Software
Loading...
Searching...
No Matches
hexdump.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef CXXUTILS_HEXDUMP_H
14#define CXXUTILS_HEXDUMP_H
15
16
17#include <ostream>
18
19
20namespace CxxUtils {
21
22
31void hexdump (std::ostream& s, const void* addr, size_t n, size_t offset = 0);
32
33
46void safeHexdump (std::ostream& s, const void* addr, size_t n, size_t offset = 0);
47
48
49} // namespace CxxUtils
50
51
52#endif // not CXXUTILS_HEXDUMP_H
void hexdump(std::ostream &s, const void *addr, size_t n, size_t offset=0)
Make a hex dump of memory.
Definition hexdump.cxx:37
void safeHexdump(std::ostream &s, const void *addr, size_t n, size_t offset=0)
Make a hex dump of memory, protected against bad reads.
Definition hexdump.cxx:104