mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Add new Stream base class, internal-only for now.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user