public string this[int index] { get { IntPtr ptr = SprExport.Spr_array_get_char_p(this, index); string bstr = Marshal.PtrToStringBSTR(ptr); Marshal.FreeBSTR(ptr); return(bstr); } set { IntPtr pbstr = Marshal.StringToBSTR(value); SprExport.Spr_array_set_char_p(this, index, pbstr); Marshal.FreeBSTR(pbstr); } }
public double this[int index] { get { return((double)SprExport.Spr_array_get_double(this, index)); } set { SprExport.Spr_array_set_double(this, index, value); } }
public float this[int index] { get { return((float)SprExport.Spr_array_get_float(this, index)); } set { SprExport.Spr_array_set_float(this, index, value); } }
public int this[int index] { get { return((int)SprExport.Spr_array_get_int(this, index)); } set { SprExport.Spr_array_set_int(this, index, value); } }
public void clear() { SprExport.Spr_vector_clear_size_t(this); }
public void clear() { SprExport.Spr_vector_clear_unsigned_int(this); }
public int size() { return((int)SprExport.Spr_vector_size_unsigned_int(this)); }
public arraywrapper(uint size, uint nelm) { _this = SprExport.Spr_arraywrapper_new(size, nelm); _nelm = nelm; }
public void push_back(double value) { SprExport.Spr_vector_push_back_double(this, value); }
public int size() { return((int)SprExport.Spr_vector_size_double(this)); }
public void clear() { SprExport.Spr_vector_clear_float(this); }
public void push_back(float value) { SprExport.Spr_vector_push_back_float(this, value); }
public int size() { return((int)SprExport.Spr_vector_size_float(this)); }
public ulong this[int index] { get { return((ulong)SprExport.Spr_vector_get_size_t(this, index)); } set { SprExport.Spr_vector_set_size_t(this, index, value); } }
public arraywrapper_char_p(uint nelm) : base((uint)IntPtr.Size, nelm + 1) { SprExport.Spr_array_init_char_p(_this, nelm + 1); }
public void clear() { SprExport.Spr_vector_clear_double(this); }
public int size() { return((int)SprExport.Spr_vector_size_string(this)); }
public void push_back(int value) { SprExport.Spr_vector_push_back_int(this, value); }
public void push_back(string value) { SprExport.Spr_vector_push_back_string(this, value); }
public void push_back(uint value) { SprExport.Spr_vector_push_back_unsigned_int(this, value); }
public void clear() { SprExport.Spr_vector_clear_string(this); }
public uint this[int index] { get { return((uint)SprExport.Spr_vector_get_unsigned_int(this, index)); } set { SprExport.Spr_vector_set_unsigned_int(this, index, value); } }
public void push_back(ulong value) { SprExport.Spr_vector_push_back_size_t(this, value); }