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