Add new Stream base class, internal-only for now.

This commit is contained in:
Alex Szpakowski
2022-04-21 19:52:04 -03:00
parent 76193899b3
commit ceb23eee48
7 changed files with 143 additions and 21 deletions
+3 -2
View File
@@ -31,11 +31,12 @@ namespace data
love::Type ByteData::type("ByteData", &Data::type);
ByteData::ByteData(size_t size)
ByteData::ByteData(size_t size, bool clear)
: size(size)
{
create();
memset(data, 0, size);
if (clear)
memset(data, 0, size);
}
ByteData::ByteData(const void *d, size_t size)