| 6 |
| * Copyright Nikolai Kudashov, 2015-2018. |
| 7 | */ |
| 8 |
| 9 | #ifndef BYTEARRAY_H |
| 10 | #define BYTEARRAY_H |
| 11 |
| 12 | #include <stdint.h> |
| 13 |
| 14 | class ByteArray { |
| 15 |
| 16 | public: |
| 17 | ByteArray(); |
| 18 | ByteArray(uint32_t len); |
| 19 | ByteArray(ByteArray *byteArray); |
| 20 | ByteArray(uint8_t *buffer, uint32_t len); |
| 21 | ~ByteArray(); |
| 22 | void alloc(uint32_t len); |
| 23 |
| 24 | uint32_t length; |
| 25 | uint8_t *bytes; |
| 26 |
| 27 | bool isEqualTo(ByteArray *byteArray); |
| 28 |
| 29 | }; |
| 30 |
| 31 | #endif |
| 32 |