2018-03-24 23:54:43 +00:00
|
|
|
#ifndef BYTEBUFFER_HPP_INCLUDED
|
|
|
|
#define BYTEBUFFER_HPP_INCLUDED
|
|
|
|
|
|
|
|
#include "Object.hpp"
|
|
|
|
#include <cstdint>
|
2018-12-27 18:17:09 +00:00
|
|
|
namespace Internal
|
2018-03-24 23:54:43 +00:00
|
|
|
{
|
2018-12-27 18:17:09 +00:00
|
|
|
class ByteBuffer : public Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ByteBuffer(const void* Obj);
|
|
|
|
|
|
|
|
ByteBuffer() = default;
|
|
|
|
ByteBuffer(ByteBuffer&& Obj) = default;
|
|
|
|
ByteBuffer(const ByteBuffer& Obj) = default;
|
|
|
|
ByteBuffer& operator=(ByteBuffer&& Obj) = default;
|
|
|
|
ByteBuffer& operator=(const ByteBuffer& Obj) = default;
|
2018-03-24 23:54:43 +00:00
|
|
|
|
2018-12-27 18:17:09 +00:00
|
|
|
std::int32_t GetCapacity() const;
|
|
|
|
std::int8_t Get(std::int32_t Index) const;
|
2018-03-24 23:54:43 +00:00
|
|
|
|
2018-12-27 18:17:09 +00:00
|
|
|
};
|
|
|
|
}
|
2018-03-24 23:54:43 +00:00
|
|
|
|
|
|
|
#endif // BYTEBUFFER_HPP_INCLUDED
|