Change soft-fail to use the config, rather than env
[rbx.git] / shotgun / lib / bytearray.h
blob42059a68957d47d29f7001bb1de28e66ae3de209
1 OBJECT bytearray_new(STATE, unsigned int sz);
2 OBJECT bytearray_new_dirty(STATE, unsigned int size);
3 void *bytearray_byte_address(STATE, OBJECT self);
4 char *bytearray_as_string(STATE, OBJECT self);
5 OBJECT bytearray_dup(STATE, OBJECT self);
8 #define BYTEARRAY_ADDRESS(self) ((void*)BYTES_OF(self))
9 #define BYTEARRAY_SIZE(self) SIZE_OF_BODY(self)
11 #define bytearray_byte_address(st, self) BYTEARRAY_ADDRESS(self)
12 #define bytearray_bytes(st, self) BYTEARRAY_SIZE(self)
14 OBJECT iseq_new(STATE, unsigned int sz);
15 void iseq_flip(STATE, OBJECT self, OBJECT output);