Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
print_memory.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Roc Streaming authors
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 //! @file roc_core/print_memory.h
10 //! @brief Print memory to console.
11 
12 #ifndef ROC_CORE_PRINT_MEMORY_H_
13 #define ROC_CORE_PRINT_MEMORY_H_
14 
15 #include "roc_core/stddefs.h"
16 
17 namespace roc {
18 namespace core {
19 
20 //! Print memory.
21 void print_memory(const uint8_t* data, size_t size);
22 
23 //! Print memory.
24 void print_memory(const uint16_t* data, size_t size);
25 
26 //! Print memory.
27 void print_memory(const uint32_t* data, size_t size);
28 
29 //! Print memory.
30 void print_memory(const uint64_t* data, size_t size);
31 
32 //! Print memory.
33 void print_memory(const int8_t* data, size_t size);
34 
35 //! Print memory.
36 void print_memory(const int16_t* data, size_t size);
37 
38 //! Print memory.
39 void print_memory(const int32_t* data, size_t size);
40 
41 //! Print memory.
42 void print_memory(const int64_t* data, size_t size);
43 
44 //! Print memory.
45 void print_memory(const float* data, size_t size);
46 
47 //! Print memory.
48 void print_memory(const double* data, size_t size);
49 
50 //! Print memory slice.
51 void print_memory_slice(const uint8_t* inner,
52  size_t inner_size,
53  const uint8_t* outer,
54  size_t outer_size);
55 
56 //! Print memory slice.
57 void print_memory_slice(const uint16_t* inner,
58  size_t inner_size,
59  const uint16_t* outer,
60  size_t outer_size);
61 
62 //! Print memory slice.
63 void print_memory_slice(const uint32_t* inner,
64  size_t inner_size,
65  const uint32_t* outer,
66  size_t outer_size);
67 
68 //! Print memory slice.
69 void print_memory_slice(const uint64_t* inner,
70  size_t inner_size,
71  const uint64_t* outer,
72  size_t outer_size);
73 
74 //! Print memory slice.
75 void print_memory_slice(const int8_t* inner,
76  size_t inner_size,
77  const int8_t* outer,
78  size_t outer_size);
79 
80 //! Print memory slice.
81 void print_memory_slice(const int16_t* inner,
82  size_t inner_size,
83  const int16_t* outer,
84  size_t outer_size);
85 
86 //! Print memory slice.
87 void print_memory_slice(const int32_t* inner,
88  size_t inner_size,
89  const int32_t* outer,
90  size_t outer_size);
91 
92 //! Print memory slice.
93 void print_memory_slice(const int64_t* inner,
94  size_t inner_size,
95  const int64_t* outer,
96  size_t outer_size);
97 
98 //! Print memory slice.
99 void print_memory_slice(const float* inner,
100  size_t inner_size,
101  const float* outer,
102  size_t outer_size);
103 
104 //! Print memory slice.
105 void print_memory_slice(const double* inner,
106  size_t inner_size,
107  const double* outer,
108  size_t outer_size);
109 
110 } // namespace core
111 } // namespace roc
112 
113 #endif // ROC_CORE_PRINT_MEMORY_H_
void print_memory(const uint8_t *data, size_t size)
Print memory.
void print_memory_slice(const uint8_t *inner, size_t inner_size, const uint8_t *outer, size_t outer_size)
Print memory slice.
Root namespace.
Commonly used types and functions.