/*
 *
 *   bufcpy.h
 *
 *   Utility functions to quickly move data between std::queue's and raw byte arrays
 *
 *   Usage:
 *       bufcpy (dst, src, len)
 *
 */

#ifndef __BUFCPY_H
#define __BUFCPY_H

	#include <queue>
	#include <string>

	namespace my {
		void bufcpy (std::queue<unsigned char> &dst, const unsigned char *src, size_t len);
		void bufcpy (unsigned char *dst, std::queue<unsigned char> &src, size_t len);

		void bufcpy (std::queue<unsigned char> &dst, const std::string &s);
		void bufcpy (std::string &s, std::queue<unsigned char> &dst);
	}

#endif /* __BUFCPY_H */
