]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | |
2 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- | |
3 | // vim: ts=8 sw=2 smarttab | |
4 | /* | |
5 | * Ceph - scalable distributed file system | |
6 | * | |
7 | * Copyright (C) 2011 New Dream Network | |
8 | * | |
9 | * This is free software; you can redistribute it and/or | |
10 | * modify it under the terms of the GNU Lesser General Public | |
11 | * License version 2.1, as published by the Free Software | |
12 | * Foundation. See file COPYING. | |
13 | * | |
14 | */ | |
15 | ||
16 | #ifndef CEPH_COMMON_HEX_H | |
17 | #define CEPH_COMMON_HEX_H | |
18 | ||
19 | #include <string> | |
20 | ||
21 | extern void hex2str(const char *s, int len, char *buf, int dest_len); | |
22 | ||
23 | extern std::string hexdump(std::string msg, const char *s, int len); | |
24 | ||
25 | #endif |