Row.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.1
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. namespace RakNet {
  9. using System;
  10. using System.Runtime.InteropServices;
  11. public class Row : IDisposable {
  12. private HandleRef swigCPtr;
  13. protected bool swigCMemOwn;
  14. internal Row(IntPtr cPtr, bool cMemoryOwn) {
  15. swigCMemOwn = cMemoryOwn;
  16. swigCPtr = new HandleRef(this, cPtr);
  17. }
  18. internal static HandleRef getCPtr(Row obj) {
  19. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  20. }
  21. ~Row() {
  22. Dispose();
  23. }
  24. public virtual void Dispose() {
  25. lock(this) {
  26. if (swigCPtr.Handle != IntPtr.Zero) {
  27. if (swigCMemOwn) {
  28. swigCMemOwn = false;
  29. RakNetPINVOKE.delete_Row(swigCPtr);
  30. }
  31. swigCPtr = new HandleRef(null, IntPtr.Zero);
  32. }
  33. GC.SuppressFinalize(this);
  34. }
  35. }
  36. public RakNetListCellPointer cells {
  37. set {
  38. RakNetPINVOKE.Row_cells_set(swigCPtr, RakNetListCellPointer.getCPtr(value));
  39. }
  40. get {
  41. IntPtr cPtr = RakNetPINVOKE.Row_cells_get(swigCPtr);
  42. RakNetListCellPointer ret = (cPtr == IntPtr.Zero) ? null : new RakNetListCellPointer(cPtr, false);
  43. return ret;
  44. }
  45. }
  46. public void UpdateCell(uint columnIndex, double value) {
  47. RakNetPINVOKE.Row_UpdateCell__SWIG_0(swigCPtr, columnIndex, value);
  48. }
  49. public void UpdateCell(uint columnIndex, string str) {
  50. RakNetPINVOKE.Row_UpdateCell__SWIG_1(swigCPtr, columnIndex, str);
  51. }
  52. public void UpdateCell(uint columnIndex, int byteLength, byte[] inByteArray) {
  53. RakNetPINVOKE.Row_UpdateCell__SWIG_2(swigCPtr, columnIndex, byteLength, inByteArray);
  54. }
  55. public Row() : this(RakNetPINVOKE.new_Row(), true) {
  56. }
  57. }
  58. }
粤ICP备19079148号