~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to queue.h

  • Committer: weidai
  • Date: 2010-06-18 01:52:34 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:485
avoid SecBlock of arrays

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        size_t Peek(byte &outByte) const;
36
36
        size_t Peek(byte *outString, size_t peekMax) const;
37
37
 
38
 
        size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true);
39
 
        size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const;
 
38
        size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true);
 
39
        size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true) const;
40
40
 
41
41
        // these member functions are not inherited
42
42
        void SetNodeSize(size_t nodeSize);
80
80
                size_t Peek(byte &outByte) const;
81
81
                size_t Peek(byte *outString, size_t peekMax) const;
82
82
 
83
 
                size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true);
84
 
                size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const;
 
83
                size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true);
 
84
                size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true) const;
85
85
 
86
86
        private:
87
87
                const ByteQueue &m_queue;
131
131
 
132
132
NAMESPACE_END
133
133
 
 
134
#ifndef __BORLANDC__
134
135
NAMESPACE_BEGIN(std)
135
136
template<> inline void swap(CryptoPP::ByteQueue &a, CryptoPP::ByteQueue &b)
136
137
{
137
138
        a.swap(b);
138
139
}
139
140
NAMESPACE_END
 
141
#endif
140
142
 
141
143
#endif