monotone

monotone Mtn Source Tree

Root/botan/out_buf.h

1/*************************************************
2* Output Buffer Header File *
3* (C) 1999-2006 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_OUTPUT_BUFFER_H__
7#define BOTAN_OUTPUT_BUFFER_H__
8
9#include <botan/types.h>
10#include <deque>
11
12namespace Botan {
13
14/*************************************************
15* Container of output buffers for Pipe *
16*************************************************/
17class Output_Buffers
18 {
19 public:
20 u32bit read(byte[], u32bit, u32bit);
21 u32bit peek(byte[], u32bit, u32bit, u32bit) const;
22 u32bit remaining(u32bit) const;
23
24 void add(class SecureQueue*);
25 void retire();
26
27 u32bit message_count() const;
28
29 Output_Buffers();
30 ~Output_Buffers();
31 private:
32 class SecureQueue* get(u32bit) const;
33
34 std::deque<SecureQueue*> buffers;
35 u32bit offset;
36 };
37
38}
39
40#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status