Try and clear up GC issues (requires clean build)
This commit is contained in:
45
project/include/utils/ArrayBufferView.h
Normal file
45
project/include/utils/ArrayBufferView.h
Normal 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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user