Revert Bytes changes, prevents ppremature GC on audio decoding

This commit is contained in:
Joshua Granick
2016-12-19 19:50:56 -08:00
parent 1283ad44f2
commit ad339aa827
28 changed files with 451 additions and 302 deletions

View File

@@ -9,10 +9,7 @@
namespace lime {
class Bytes {
public:
struct Bytes {
Bytes ();
@@ -22,7 +19,6 @@ namespace lime {
Bytes (const QuickVec<unsigned char> data);
~Bytes ();
void Clear ();
unsigned char *Data ();
const unsigned char *Data () const;
int Length () const;
@@ -34,6 +30,7 @@ namespace lime {
unsigned char *_data;
int _length;
AutoGCRoot *_root;
value _value;