diff options
Diffstat (limited to 'randpool.h')
-rw-r--r-- | randpool.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -17,19 +17,19 @@ public: //! poolSize must be greater than 16 RandomPool(unsigned int poolSize=384); - unsigned int Put2(const byte *begin, unsigned int, int messageEnd, bool blocking); + size_t Put2(const byte *begin, size_t length, int messageEnd, bool blocking); bool AnyRetrievable() const {return true;} - unsigned long MaxRetrievable() const {return ULONG_MAX;} + lword MaxRetrievable() const {return ULONG_MAX;} - unsigned int TransferTo2(BufferedTransformation &target, unsigned long &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true); - unsigned int CopyRangeTo2(BufferedTransformation &target, unsigned long &begin, unsigned long end=ULONG_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const + size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true); + size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const { throw NotImplemented("RandomPool: CopyRangeTo2() is not supported by this store"); } byte GenerateByte(); - void GenerateBlock(byte *output, unsigned int size); + void GenerateBlock(byte *output, size_t size); void IsolatedInitialize(const NameValuePairs ¶meters) {} @@ -38,7 +38,7 @@ protected: private: SecByteBlock pool, key; - unsigned int addPos, getPos; + size_t addPos, getPos; }; NAMESPACE_END |