Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Functions
a
b
c
d
e
f
h
i
l
n
o
p
r
s
t
u
v
Variables
Typedefs
Enumerations
a
c
d
f
h
i
l
m
p
r
s
t
v
Enumerator
a
c
d
f
h
i
l
m
p
r
s
t
u
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Typedefs
Enumerations
Enumerator
b
c
d
e
f
i
m
n
q
r
s
x
Files
File List
File Members
All
f
o
r
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
packet_flags_to_str.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 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_packet/packet_flags_to_str.h
10
//! @brief Packet flags to string.
11
12
#ifndef ROC_PACKET_PACKET_FLAGS_TO_STR_H_
13
#define ROC_PACKET_PACKET_FLAGS_TO_STR_H_
14
15
#include "
roc_packet/packet.h
"
16
17
namespace
roc
{
18
namespace
packet {
19
20
//! Format packet flags to string.
21
class
packet_flags_to_str
:
public
core::NonCopyable
<> {
22
public
:
23
//! Construct.
24
explicit
packet_flags_to_str
(
unsigned
flags);
25
26
//! Get formatted string.
27
const
char
*
c_str
()
const
{
28
return
buf_;
29
}
27
const
char
*
c_str
()
const
{
…
}
30
31
private
:
32
char
buf_[256];
33
};
21
class
packet_flags_to_str
:
public
core::NonCopyable
<> {
…
};
34
35
}
// namespace packet
36
}
// namespace roc
37
38
#endif
// ROC_PACKET_PACKET_FLAGS_TO_STR_H_
roc::core::NonCopyable
Base class for non-copyable objects.
Definition
noncopyable.h:23
roc::packet::packet_flags_to_str
Format packet flags to string.
Definition
packet_flags_to_str.h:21
roc::packet::packet_flags_to_str::c_str
const char * c_str() const
Get formatted string.
Definition
packet_flags_to_str.h:27
roc::packet::packet_flags_to_str::packet_flags_to_str
packet_flags_to_str(unsigned flags)
Construct.
roc
Root namespace.
packet.h
Packet.
roc_packet
packet_flags_to_str.h
Generated by
1.9.8