4 #include "api/api_global.h"
11 // provides a wrapper around a byte vector
17 ByteArray(const std::string& value);
18 ByteArray(const std::vector<char>& value);
19 ByteArray(const char* value, size_t n);
20 ByteArray(const ByteArray& other);
23 ByteArray& operator=(const ByteArray& other);
25 // ByteArray interface
29 const char* ConstData(void) const;
31 const char& operator[](size_t i) const;
32 char& operator[](size_t i);
34 // byte array manipulation
36 size_t IndexOf(const char c, const size_t from = 0, const size_t to = 0) const;
37 ByteArray& Remove(size_t from, size_t n);
38 void Resize(size_t n);
39 size_t Size(void) const;
44 std::vector<char> m_data;
47 } // namespace Internal
48 } // namespace BamTools
50 #endif // BYTEARRAY_P_H