Botan 1.10.17

out_buf.h
Go to the documentation of this file.
1 /*
2 * Output Buffer
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_OUTPUT_BUFFER_H__
9 #define BOTAN_OUTPUT_BUFFER_H__
10
11 #include <botan/types.h>
12 #include <botan/pipe.h>
13 #include <deque>
14
15 namespace Botan {
16
17 /**
18 * Container of output buffers for Pipe
19 */
20 class Output_Buffers
21 {
22 public:
23 size_t read(byte[], size_t, Pipe::message_id);
24 size_t peek(byte[], size_t, size_t, Pipe::message_id) const;
25 size_t remaining(Pipe::message_id) const;
26
27 void add(class SecureQueue*);
28 void retire();
29
30 Pipe::message_id message_count() const;
31
32 Output_Buffers();
33 ~Output_Buffers();
34 private:
35 class SecureQueue* get(Pipe::message_id) const;
36
37 std::deque<SecureQueue*> buffers;
38 Pipe::message_id offset;
39 };
40
41 }
42
43 #endif
Botan::Output_Buffers::read
size_t read(byte[], size_t, Pipe::message_id)
Definition: out_buf.cpp:17
Botan::SecureQueue
Definition: secqueue.h:19
Botan::Output_Buffers::remaining
size_t remaining(Pipe::message_id) const
Definition: out_buf.cpp:42
Botan::Pipe::message_id
size_t message_id
Definition: pipe.h:31
Botan::Output_Buffers::~Output_Buffers
~Output_Buffers()
Definition: out_buf.cpp:115
Botan::Output_Buffers
Definition: out_buf.h:20
Botan::Output_Buffers::retire
void retire()
Definition: out_buf.cpp:66
Botan::byte
unsigned char byte
Definition: types.h:22
Botan::Output_Buffers::message_count
Pipe::message_id message_count() const
Definition: out_buf.cpp:99
Botan::Output_Buffers::Output_Buffers
Output_Buffers()
Definition: out_buf.cpp:107
Botan
Definition: algo_base.h:14
Botan::Output_Buffers::peek
size_t peek(byte[], size_t, size_t, Pipe::message_id) const
Definition: out_buf.cpp:29
Botan::Output_Buffers::add
void add(class SecureQueue *)
Definition: out_buf.cpp:53