You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ScByteArray.hxx 446B

12345678910111213141516171819202122232425262728
  1. //
  2. // Created by robin on 6/27/15.
  3. //
  4. #include <stdlib.h>
  5. #include <string.h>
  6. ScByteArray::ScByteArray(BYTE * const data, const DWORD size)
  7. : _data(data)
  8. , _size(size)
  9. {
  10. }
  11. ScByteArray::ScByteArray(const ScByteArray &data)
  12. {
  13. _size = data._size;
  14. _data = (BYTE*)memcpy(malloc(_size), data._data, _size);
  15. }
  16. DWORD ScByteArray::getSize() const
  17. {
  18. return _size;
  19. }
  20. BYTE* ScByteArray::getData() const
  21. {
  22. return _data;
  23. }