FileListNodeContext.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 FileListNodeContext : IDisposable {
  12. private HandleRef swigCPtr;
  13. protected bool swigCMemOwn;
  14. internal FileListNodeContext(IntPtr cPtr, bool cMemoryOwn) {
  15. swigCMemOwn = cMemoryOwn;
  16. swigCPtr = new HandleRef(this, cPtr);
  17. }
  18. internal static HandleRef getCPtr(FileListNodeContext obj) {
  19. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  20. }
  21. ~FileListNodeContext() {
  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_FileListNodeContext(swigCPtr);
  30. }
  31. swigCPtr = new HandleRef(null, IntPtr.Zero);
  32. }
  33. GC.SuppressFinalize(this);
  34. }
  35. }
  36. public FileListNodeContext() : this(RakNetPINVOKE.new_FileListNodeContext__SWIG_0(), true) {
  37. }
  38. public FileListNodeContext(byte o, uint f) : this(RakNetPINVOKE.new_FileListNodeContext__SWIG_1(o, f), true) {
  39. }
  40. public byte op {
  41. set {
  42. RakNetPINVOKE.FileListNodeContext_op_set(swigCPtr, value);
  43. }
  44. get {
  45. byte ret = RakNetPINVOKE.FileListNodeContext_op_get(swigCPtr);
  46. return ret;
  47. }
  48. }
  49. public uint fileId {
  50. set {
  51. RakNetPINVOKE.FileListNodeContext_fileId_set(swigCPtr, value);
  52. }
  53. get {
  54. uint ret = RakNetPINVOKE.FileListNodeContext_fileId_get(swigCPtr);
  55. return ret;
  56. }
  57. }
  58. public SWIGTYPE_p_void dataPtr {
  59. set {
  60. RakNetPINVOKE.FileListNodeContext_dataPtr_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
  61. }
  62. get {
  63. IntPtr cPtr = RakNetPINVOKE.FileListNodeContext_dataPtr_get(swigCPtr);
  64. SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
  65. return ret;
  66. }
  67. }
  68. public uint dataLength {
  69. set {
  70. RakNetPINVOKE.FileListNodeContext_dataLength_set(swigCPtr, value);
  71. }
  72. get {
  73. uint ret = RakNetPINVOKE.FileListNodeContext_dataLength_get(swigCPtr);
  74. return ret;
  75. }
  76. }
  77. }
  78. }
粤ICP备19079148号