⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 queue.h

📁 各种加密算法的集合
💻 H
字号:
// specification file for an unlimited queue for storing bytes 

#ifndef QUEUE_H 
#define QUEUE_H 

#include "cryptlib.h" 

// The queue is implemented as a linked list of arrays, but you don't need to 
// know about that. So just ignore this next line. :) 
class ByteQueueNode; 

class ByteQueue : public BufferedTransformation 
{ 
public: 
ByteQueue(); 
~ByteQueue(); 

// how many bytes currently stored 
unsigned long CurrentSize() const; 
unsigned long MaxRetrieveable() 
{return CurrentSize();} 

void Put(byte inByte); 
void Put(const byte *inString, unsigned int length); 

// both functions returns the number of bytes actually retrived 
int Get(byte &amt;outByte); 
unsigned int Get(byte *outString, unsigned int getMax); 

private: 
ByteQueueNode *head, *tail; 
}; 

#endif 








⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -