forked from dolphinsmalltalk/DolphinVM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
STByteArray.h
37 lines (24 loc) · 820 Bytes
/
STByteArray.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/******************************************************************************
File: STByteArray.h
Description:
VM representation of Smalltalk ByteArray class.
N.B. The representation of this class must NOT be changed.
******************************************************************************/
#ifndef _IST_STBYTEARRAY_H_
#define _IST_STBYTEARRAY_H_
#include "STCollection.h"
// Turn off warning about zero length arrays
#pragma warning ( disable : 4200)
class ByteArray;
typedef TOTE<ByteArray> ByteArrayOTE;
class ByteArray : public ArrayedCollection
{
public:
BYTE m_elements[];
static ByteArrayOTE* New(unsigned size);
};
inline ByteArrayOTE* ByteArray::New(unsigned size)
{
return reinterpret_cast<ByteArrayOTE*>(ObjectMemory::newByteObject(Pointers.ClassByteArray, size));
}
#endif // EOF