From 89f3cf8bbb9dc1fa0fe72f6af6638ac086c7e011 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 29 Nov 2017 09:33:41 +0300 Subject: libevent, telegram, whatsapp moved to deprecated coz doesn't work --- protocols/WhatsApp/src/WhatsAPI++/ByteArray.h | 53 --------------------------- 1 file changed, 53 deletions(-) delete mode 100644 protocols/WhatsApp/src/WhatsAPI++/ByteArray.h (limited to 'protocols/WhatsApp/src/WhatsAPI++/ByteArray.h') diff --git a/protocols/WhatsApp/src/WhatsAPI++/ByteArray.h b/protocols/WhatsApp/src/WhatsAPI++/ByteArray.h deleted file mode 100644 index d3375d1f3b..0000000000 --- a/protocols/WhatsApp/src/WhatsAPI++/ByteArray.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * ByteArray.h - * - * Created on: 26/06/2012 - * Author: Antonio - */ - - - -#ifndef BYTEARRAY_H_ -#define BYTEARRAY_H_ - -#include -#include - -class ByteArrayOutputStream { -protected: - std::vector buf; - size_t position; - -public: - ByteArrayOutputStream(int size = 32); - virtual ~ByteArrayOutputStream(); - - std::vector& getBuffer(); - void setPosition(size_t count); - void write(int i); - void write(unsigned char* c, size_t length); - void write(const std::string &s); - void setLength(size_t length); - - __forceinline size_t getCapacity() const { return buf.capacity(); } - __forceinline size_t getLength() const { return buf.size(); } - __forceinline size_t getPosition() const { return position; } -}; - -class ByteArrayInputStream { -protected: - std::vector* buf; - size_t pos; - size_t mark; - size_t count; - -public: - ByteArrayInputStream(std::vector* buf, size_t off, size_t length ); - ByteArrayInputStream(std::vector* buf); - int read(); - int read(std::vector& b, size_t off, size_t length); - - virtual ~ByteArrayInputStream(); -}; - -#endif /* BYTEARRAY_H_ */ -- cgit v1.2.3