summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/ByteArray.h
diff options
context:
space:
mode:
authorKirill Volinsky <Mataes2007@gmail.com>2017-11-29 09:33:41 +0300
committerKirill Volinsky <Mataes2007@gmail.com>2017-11-29 09:33:41 +0300
commit89f3cf8bbb9dc1fa0fe72f6af6638ac086c7e011 (patch)
tree5be9a7ae2255b9ad420bed266b90b1f98059964a /protocols/WhatsApp/src/WhatsAPI++/ByteArray.h
parente28c4adb361a87e143eb8cb2af449e3bcb3375b1 (diff)
libevent, telegram, whatsapp moved to deprecated coz doesn't work
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/ByteArray.h')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/ByteArray.h53
1 files changed, 0 insertions, 53 deletions
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 <vector>
-#include <string>
-
-class ByteArrayOutputStream {
-protected:
- std::vector<unsigned char> buf;
- size_t position;
-
-public:
- ByteArrayOutputStream(int size = 32);
- virtual ~ByteArrayOutputStream();
-
- std::vector<unsigned char>& 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<unsigned char>* buf;
- size_t pos;
- size_t mark;
- size_t count;
-
-public:
- ByteArrayInputStream(std::vector<unsigned char>* buf, size_t off, size_t length );
- ByteArrayInputStream(std::vector<unsigned char>* buf);
- int read();
- int read(std::vector<unsigned char>& b, size_t off, size_t length);
-
- virtual ~ByteArrayInputStream();
-};
-
-#endif /* BYTEARRAY_H_ */