Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdPlatformStreamer.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdPlatformStreamer : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdPlatformStreamer(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdPlatformStreamer obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public static Int16 rdInt16(OdStreamBuf streamBuf) {
52// test csout
53 /*SIMPLETYPE*/
56 return ret;
57 }
58
59 public static UInt16 rdUInt16(OdStreamBuf streamBuf) {
60// test csout
61 /*SIMPLETYPE*/
64 return ret;
65 }
66
67 public static Int32 rdInt32(OdStreamBuf streamBuf) {
68// test csout
69 /*SIMPLETYPE*/
72 return ret;
73 }
74
75 public static Int64 rdInt64(OdStreamBuf streamBuf) {
76// test csout
77 /*SIMPLETYPE*/
80 return ret;
81 }
82
83 public static float rdFloat(OdStreamBuf streamBuf) {
86 return ret;
87 }
88
89 public static double rdDouble(OdStreamBuf streamBuf) {
92 return ret;
93 }
94
95 public static void rd2Doubles(OdStreamBuf streamBuf, IntPtr /*SIMPLETYPE*/ doubles) {
96 GlobalsPINVOKE.OdPlatformStreamer_rd2Doubles(OdStreamBuf.getCPtr(streamBuf), doubles /*SIMPLETYPE*/);
98 }
99
100 public static void rd3Doubles(OdStreamBuf streamBuf, IntPtr /*SIMPLETYPE*/ doubles) {
101 GlobalsPINVOKE.OdPlatformStreamer_rd3Doubles(OdStreamBuf.getCPtr(streamBuf), doubles /*SIMPLETYPE*/);
103 }
104
105 public static void rdDoubles(OdStreamBuf streamBuf, int numDoubles, IntPtr /*SIMPLETYPE*/ doubles) {
106 GlobalsPINVOKE.OdPlatformStreamer_rdDoubles(OdStreamBuf.getCPtr(streamBuf), numDoubles, doubles /*SIMPLETYPE*/);
108 }
109
110 public static void wrInt16(OdStreamBuf streamBuf, Int16 /*SIMPLETYPE*/ value) {
113 }
114
115 public static void wrUInt16(OdStreamBuf streamBuf, UInt16 /*SIMPLETYPE*/ value) {
118 }
119
120 public static void wrInt32(OdStreamBuf streamBuf, Int32 /*SIMPLETYPE*/ value) {
123 }
124
125 public static void wrInt64(OdStreamBuf streamBuf, Int64 /*SIMPLETYPE*/ value) {
128 }
129
130 public static void wrFloat(OdStreamBuf out_, float val) {
133 }
134
135 public static void wrDouble(OdStreamBuf streamBuf, double value) {
138 }
139
140 public static void wr2Doubles(OdStreamBuf streamBuf, IntPtr /*SIMPLETYPE*/ doubles) {
141 GlobalsPINVOKE.OdPlatformStreamer_wr2Doubles(OdStreamBuf.getCPtr(streamBuf), doubles /*SIMPLETYPE*/);
143 }
144
145 public static void wr3Doubles(OdStreamBuf streamBuf, IntPtr /*SIMPLETYPE*/ doubles) {
146 GlobalsPINVOKE.OdPlatformStreamer_wr3Doubles(OdStreamBuf.getCPtr(streamBuf), doubles /*SIMPLETYPE*/);
148 }
149
150 public static void wrDoubles(OdStreamBuf streamBuf, int numDoubles, IntPtr /*SIMPLETYPE*/ doubles) {
151 GlobalsPINVOKE.OdPlatformStreamer_wrDoubles(OdStreamBuf.getCPtr(streamBuf), numDoubles, doubles /*SIMPLETYPE*/);
153 }
154
155 public static String getUnicodeStrFromBuffer(SWIGTYPE_p_p_unsigned_char buffer, Int32 /*SIMPLETYPE*/ size) {
156 string ret = GlobalsPINVOKE.OdPlatformStreamer_getUnicodeStrFromBuffer(SWIGTYPE_p_p_unsigned_char.getCPtr(buffer), size /*SIMPLETYPE*/);
158 return ret;
159}
160
164 }
165
166 public static void wrString(OdStreamBuf streamBuf, String val) {
169 }
170
171 public static String rdString(OdStreamBuf streamBuf) {
174 return ret;
175}
176
177 public OdPlatformStreamer() : this(GlobalsPINVOKE.new_OdPlatformStreamer(), true) {
179 }
180
181}
182
183}
static global::System.Exception Retrieve()
static void OdPlatformStreamer_wrDoubles(HandleRef jarg1, int jarg2, IntPtr jarg3)
static void OdPlatformStreamer_wrInt32(HandleRef jarg1, Int32 jarg2)
static void delete_OdPlatformStreamer(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdPlatformStreamer_wrUInt16(HandleRef jarg1, UInt16 jarg2)
static Int64 OdPlatformStreamer_rdInt64(HandleRef jarg1)
static void OdPlatformStreamer_wrFloat(HandleRef jarg1, float jarg2)
static float OdPlatformStreamer_rdFloat(HandleRef jarg1)
static void OdPlatformStreamer_rd3Doubles(HandleRef jarg1, IntPtr jarg2)
static void OdPlatformStreamer_wrString(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static String OdPlatformStreamer_getUnicodeStrFromBuffer(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void OdPlatformStreamer_wrDouble(HandleRef jarg1, double jarg2)
static void OdPlatformStreamer_rdDoubles(HandleRef jarg1, int jarg2, IntPtr jarg3)
static void OdPlatformStreamer_wr3Doubles(HandleRef jarg1, IntPtr jarg2)
static void OdPlatformStreamer_wrInt64(HandleRef jarg1, Int64 jarg2)
static Int16 OdPlatformStreamer_rdInt16(HandleRef jarg1)
static UInt16 OdPlatformStreamer_rdUInt16(HandleRef jarg1)
static String OdPlatformStreamer_rdString(HandleRef jarg1)
static void OdPlatformStreamer_wr2Doubles(HandleRef jarg1, IntPtr jarg2)
static double OdPlatformStreamer_rdDouble(HandleRef jarg1)
static void OdPlatformStreamer_putUnicodeStrToBuffer([MarshalAs(UnmanagedType.LPWStr)]String jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdPlatformStreamer_wrInt16(HandleRef jarg1, Int16 jarg2)
static Int32 OdPlatformStreamer_rdInt32(HandleRef jarg1)
static void OdPlatformStreamer_rd2Doubles(HandleRef jarg1, IntPtr jarg2)
static String getUnicodeStrFromBuffer(SWIGTYPE_p_p_unsigned_char buffer, Int32 size)
static void rd3Doubles(OdStreamBuf streamBuf, IntPtr doubles)
static void wrInt32(OdStreamBuf streamBuf, Int32 value)
static void rdDoubles(OdStreamBuf streamBuf, int numDoubles, IntPtr doubles)
static HandleRef getCPtr(OdPlatformStreamer obj)
static void wrFloat(OdStreamBuf out_, float val)
static void rd2Doubles(OdStreamBuf streamBuf, IntPtr doubles)
static float rdFloat(OdStreamBuf streamBuf)
static Int32 rdInt32(OdStreamBuf streamBuf)
OdPlatformStreamer(IntPtr cPtr, bool cMemoryOwn)
static void wrInt64(OdStreamBuf streamBuf, Int64 value)
static void wrInt16(OdStreamBuf streamBuf, Int16 value)
static double rdDouble(OdStreamBuf streamBuf)
static void wrUInt16(OdStreamBuf streamBuf, UInt16 value)
static void putUnicodeStrToBuffer(String val, SWIGTYPE_p_p_unsigned_char buffer)
virtual void Dispose(bool disposing)
static void wrString(OdStreamBuf streamBuf, String val)
static void wr3Doubles(OdStreamBuf streamBuf, IntPtr doubles)
static void wr2Doubles(OdStreamBuf streamBuf, IntPtr doubles)
static void wrDoubles(OdStreamBuf streamBuf, int numDoubles, IntPtr doubles)
static Int64 rdInt64(OdStreamBuf streamBuf)
static UInt16 rdUInt16(OdStreamBuf streamBuf)
static String rdString(OdStreamBuf streamBuf)
static void wrDouble(OdStreamBuf streamBuf, double value)
static Int16 rdInt16(OdStreamBuf streamBuf)
static HandleRef getCPtr(OdStreamBuf obj)
Definition: OdStreamBuf.cs:25