~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to mqueue.h

  • Committer: weidai
  • Date: 2011-01-07 01:30:24 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:522
fix for compiling with Clang from Marshall Clow

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        bool AnyRetrievable() const
36
36
                {return m_lengths.front() > 0;}
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
        lword TotalBytesRetrievable() const
42
42
                {return m_queue.MaxRetrievable();}
49
49
        unsigned int NumberOfMessageSeries() const
50
50
                {return (unsigned int)m_messageCounts.size()-1;}
51
51
 
52
 
        unsigned int CopyMessagesTo(BufferedTransformation &target, unsigned int count=UINT_MAX, const std::string &channel=NULL_CHANNEL) const;
 
52
        unsigned int CopyMessagesTo(BufferedTransformation &target, unsigned int count=UINT_MAX, const std::string &channel=DEFAULT_CHANNEL) const;
53
53
 
54
54
        const byte * Spy(size_t &contiguousSize) const;
55
55
 
88
88
 
89
89
NAMESPACE_END
90
90
 
 
91
#ifndef __BORLANDC__
91
92
NAMESPACE_BEGIN(std)
92
93
template<> inline void swap(CryptoPP::MessageQueue &a, CryptoPP::MessageQueue &b)
93
94
{
94
95
        a.swap(b);
95
96
}
96
97
NAMESPACE_END
 
98
#endif
97
99
 
98
100
#endif