Botan 2.1.0 Crypto and TLS for C++11

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

out_buf.h
Go to the documentation of this file.
1 /*
2 * Output Buffer
3 * (C) 1999-2007 Jack Lloyd
4 * 2012 Markus Wanner
5 *
6 * Botan is released under the Simplified BSD License (see license.txt)
7 */
8
9 #ifndef BOTAN_OUTPUT_BUFFER_H__
10 #define BOTAN_OUTPUT_BUFFER_H__
11
12 #include <botan/types.h>
13 #include <botan/pipe.h>
14 #include <deque>
15
16 namespace Botan {
17
18 /**
19 * Container of output buffers for Pipe
20 */
21 class Output_Buffers
22 {
23 public:
24 size_t read(uint8_t[], size_t, Pipe::message_id);
25 size_t peek(uint8_t[], size_t, size_t, Pipe::message_id) const;
26 size_t get_bytes_read(Pipe::message_id) const;
27 size_t remaining(Pipe::message_id) const;
28
29 void add(class SecureQueue*);
30 void retire();
31
32 Pipe::message_id message_count() const;
33
34 Output_Buffers();
35 ~Output_Buffers();
36 private:
37 class SecureQueue* get(Pipe::message_id) const;
38
39 std::deque<SecureQueue*> m_buffers;
40 Pipe::message_id m_offset;
41 };
42
43 }
44
45 #endif
Botan::SecureQueue
Definition: secqueue.h:20
Botan::Pipe::message_id
size_t message_id
Definition: pipe.h:33
Botan::Output_Buffers::~Output_Buffers
~Output_Buffers()
Definition: out_buf.cpp:125
Botan::Output_Buffers
Definition: out_buf.h:21
Botan::Output_Buffers::retire
void retire()
Definition: out_buf.cpp:77
Botan::Output_Buffers::peek
size_t peek(uint8_t[], size_t, size_t, Pipe::message_id) const
Definition: out_buf.cpp:29
Botan::Output_Buffers::Output_Buffers
Output_Buffers()
Definition: out_buf.cpp:117
Botan
Definition: alg_id.cpp:13
Botan::Output_Buffers::remaining
size_t remaining(Pipe::message_id) const
Definition: out_buf.cpp:42
Botan::Output_Buffers::get_bytes_read
size_t get_bytes_read(Pipe::message_id) const
Definition: out_buf.cpp:53
Botan::Output_Buffers::add
void add(class SecureQueue *)
Definition: out_buf.cpp:64
Botan::Output_Buffers::read
size_t read(uint8_t[], size_t, Pipe::message_id)
Definition: out_buf.cpp:17
Botan::Output_Buffers::message_count
Pipe::message_id message_count() const
Definition: out_buf.cpp:109