Example #1
0
 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);
     }
 }
Example #2
0
 public double this[int index] {
     get { return((double)SprExport.Spr_array_get_double(this, index)); }
     set { SprExport.Spr_array_set_double(this, index, value); }
 }
Example #3
0
 public float this[int index] {
     get { return((float)SprExport.Spr_array_get_float(this, index)); }
     set { SprExport.Spr_array_set_float(this, index, value); }
 }
Example #4
0
 public int this[int index] {
     get { return((int)SprExport.Spr_array_get_int(this, index)); }
     set { SprExport.Spr_array_set_int(this, index, value); }
 }
Example #5
0
 public void clear()
 {
     SprExport.Spr_vector_clear_size_t(this);
 }
Example #6
0
 public void clear()
 {
     SprExport.Spr_vector_clear_unsigned_int(this);
 }
Example #7
0
 public int size()
 {
     return((int)SprExport.Spr_vector_size_unsigned_int(this));
 }
Example #8
0
 public arraywrapper(uint size, uint nelm)
 {
     _this = SprExport.Spr_arraywrapper_new(size, nelm);
     _nelm = nelm;
 }
Example #9
0
 public void push_back(double value)
 {
     SprExport.Spr_vector_push_back_double(this, value);
 }
Example #10
0
 public int size()
 {
     return((int)SprExport.Spr_vector_size_double(this));
 }
Example #11
0
 public void clear()
 {
     SprExport.Spr_vector_clear_float(this);
 }
Example #12
0
 public void push_back(float value)
 {
     SprExport.Spr_vector_push_back_float(this, value);
 }
Example #13
0
 public int size()
 {
     return((int)SprExport.Spr_vector_size_float(this));
 }
Example #14
0
 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); }
 }
Example #15
0
 public arraywrapper_char_p(uint nelm) : base((uint)IntPtr.Size, nelm + 1)
 {
     SprExport.Spr_array_init_char_p(_this, nelm + 1);
 }
Example #16
0
 public void clear()
 {
     SprExport.Spr_vector_clear_double(this);
 }
Example #17
0
 public int size()
 {
     return((int)SprExport.Spr_vector_size_string(this));
 }
Example #18
0
 public void push_back(int value)
 {
     SprExport.Spr_vector_push_back_int(this, value);
 }
Example #19
0
 public void push_back(string value)
 {
     SprExport.Spr_vector_push_back_string(this, value);
 }
Example #20
0
 public void push_back(uint value)
 {
     SprExport.Spr_vector_push_back_unsigned_int(this, value);
 }
Example #21
0
 public void clear()
 {
     SprExport.Spr_vector_clear_string(this);
 }
Example #22
0
 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); }
 }
Example #23
0
 public void push_back(ulong value)
 {
     SprExport.Spr_vector_push_back_size_t(this, value);
 }