Create a new native Bytes implementation, use it instead of ByteArray for better ByteArray and Bytes support

This commit is contained in:
Joshua Granick
2015-06-19 14:10:59 -07:00
parent 3ef182f113
commit d73460da18
33 changed files with 563 additions and 258 deletions

View File

@@ -3,7 +3,7 @@
#include <graphics/ImageBuffer.h>
#include <utils/ByteArray.h>
#include <utils/Bytes.h>
#include <utils/Resource.h>
@@ -16,7 +16,7 @@ namespace lime {
public:
static bool Decode (Resource *resource, ImageBuffer *imageBuffer, bool decodeData = true);
static bool Encode (ImageBuffer *imageBuffer, ByteArray *bytes, int quality);
static bool Encode (ImageBuffer *imageBuffer, Bytes *bytes, int quality);
};

View File

@@ -3,7 +3,7 @@
#include <graphics/ImageBuffer.h>
#include <utils/ByteArray.h>
#include <utils/Bytes.h>
#include <utils/Resource.h>
@@ -16,7 +16,7 @@ namespace lime {
public:
static bool Decode (Resource *resource, ImageBuffer *imageBuffer, bool decodeData = true);
static bool Encode (ImageBuffer *imageBuffer, ByteArray *bytes);
static bool Encode (ImageBuffer *imageBuffer, Bytes *bytes);
};