14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
18 swigCMemOwn = cMemoryOwn;
19 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
NetworkOutMessage obj) {
23 return (obj == null) ?
new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 global::System.GC.SuppressFinalize(
this);
43 public virtual void Write(byte value) {
47 public virtual void Write(
short value) {
51 public virtual void Write(
int value) {
55 public virtual void Write(
long value) {
59 public virtual void Write(
float value) {
63 public virtual void Write(
double value) {
71 public virtual void WriteArray(byte[] data, uint length) {
72 global::System.Runtime.InteropServices.GCHandle pinHandle_data = global::System.Runtime.InteropServices.GCHandle.Alloc(data, global::System.Runtime.InteropServices.GCHandleType.Pinned);
try {
76 }
finally { pinHandle_data.Free(); }