Try and clear up GC issues (requires clean build)

This commit is contained in:
Joshua Granick
2016-09-26 14:25:32 -07:00
parent 1c5ca75b67
commit eb11502ecd
24 changed files with 522 additions and 177 deletions

View File

@@ -0,0 +1,45 @@
#ifndef LIME_UTILS_ARRAY_BUFFER_VIEW_H
#define LIME_UTILS_ARRAY_BUFFER_VIEW_H
#include <hx/CFFI.h>
#include <utils/Bytes.h>
namespace lime {
class ArrayBufferView {
public:
ArrayBufferView ();
ArrayBufferView (int size);
ArrayBufferView (value arrayBufferView);
~ArrayBufferView ();
unsigned char *Data ();
const unsigned char *Data () const;
int Length () const;
void Resize (int size);
void Set (value bytes);
void Set (const QuickVec<unsigned char> data);
value Value ();
Bytes *buffer;
int byteLength;
int length;
private:
value mValue;
};
}
#endif

View File

@@ -22,6 +22,7 @@ namespace lime {
unsigned char *Data ();
const unsigned char *Data () const;
int Length () const;
void ReadFile (const char* path);
void Resize (int size);
void Set (value bytes);
void Set (const QuickVec<unsigned char> data);