Test suite now builds

This commit is contained in:
Dan Hirsch 2013-12-16 18:47:42 +01:00
parent ee751a97c1
commit 14a5c5c1ef
9 changed files with 639 additions and 14 deletions

View file

@ -9,9 +9,9 @@
// h_not_in
//%typemap(cstype) uint8_t* "byte[]"
%typemap(imtype) uint8_t* "IntPtr"
//%typemap(csin, pre="unsafe { fixed(byte* temp$csinput = &$csinput[0]) {", terminator="}}") uint8_t* "(IntPtr)temp$csinput"
//%typemap(csvarin) uint8_t
%typemap(imtype) uint8_t* "IntPtr"
%typemap(cstype) uint8_t* "IntPtr"
%typemap(csin) uint8_t* "$csinput"
%typemap(csvarout) uint8_t* %{
@ -20,6 +20,10 @@
}
%}
%typemap(imtype) void*[] "IntPtr"
%typemap(cstype) void*[] "IntPtr"
%typemap(csin) void*[] "$csinput"
%ignore h_bit_writer_get_buffer;
%apply (char *STRING, size_t LENGTH) {(uint8_t* str, size_t len)};
%apply (uint8_t* str, size_t len) {(const uint8_t* input, size_t length)}