14using System.Runtime.InteropServices;
17 private Object locker =
new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 swigCPtr =
new HandleRef(
this, cPtr);
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
29 protected override void Dispose(
bool disposing) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
38 base.Dispose(disposing);
43 : this(
GlobalsPINVOKE.new_OdStreamBuf(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
45 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
48 mTr.AddObject(
new OdStreamBuf(swigCPtr.Handle,
true));
51 SwigDirectorConnect();
55 MemoryManager mMan = MemoryManager.GetMemoryManager();
56 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
96 MemoryManager mMan = MemoryManager.GetMemoryManager();
97 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
169 private void getBytes(IntPtr buffer, UInt32 numBytes) {
180IntPtr p_buffer=
Teigha.
Core.Helpers.MarshalbyteFixedArray(buffer);
185Marshal.FreeCoTaskMem(p_buffer);
226 private void SwigDirectorConnect() {
227 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
229 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
231 if (SwigDerivedClassHasMethod(
"fileName", swigMethodTypes2))
233 if (SwigDerivedClassHasMethod(
"isEof", swigMethodTypes3))
235 if (SwigDerivedClassHasMethod(
"tell", swigMethodTypes4))
237 if (SwigDerivedClassHasMethod(
"length", swigMethodTypes5))
239 if (SwigDerivedClassHasMethod(
"truncate", swigMethodTypes6))
241 if (SwigDerivedClassHasMethod(
"rewind", swigMethodTypes7))
243 if (SwigDerivedClassHasMethod(
"seek", swigMethodTypes8))
245 if (SwigDerivedClassHasMethod(
"getByte", swigMethodTypes9))
247 if (SwigDerivedClassHasMethod(
"putByte", swigMethodTypes10))
249 if (SwigDerivedClassHasMethod(
"putBytes", swigMethodTypes11))
251 if (SwigDerivedClassHasMethod(
"copyDataTo", swigMethodTypes12))
253 if (SwigDerivedClassHasMethod(
"copyDataTo", swigMethodTypes13))
255 if (SwigDerivedClassHasMethod(
"copyDataTo", swigMethodTypes14))
257 if (SwigDerivedClassHasMethod(
"getShareMode", swigMethodTypes15))
259 GlobalsPINVOKE.
OdStreamBuf_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15);
262 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
263 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance,
null, methodTypes,
null);
264 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(
OdStreamBuf));
265 return hasDerivedMethod;
268 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
271 OdRxObject.getCPtr(
queryX(
272 (OdRxClass)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,
false)
277 private IntPtr SwigDirectorMethodisA() {
280 OdRxClass.getCPtr(
isA()).Handle
284 [
return: MarshalAs(UnmanagedType.LPWStr)]
285 private String SwigDirectorMethodfileName() {
289 private bool SwigDirectorMethodisEof() {
293 private UInt64 SwigDirectorMethodtell() {
297 private UInt64 SwigDirectorMethodlength() {
301 private void SwigDirectorMethodtruncate() {
305 private void SwigDirectorMethodrewind() {
309 private UInt64 SwigDirectorMethodseek(Int64 offset,
int seekType) {
313 private byte SwigDirectorMethodgetByte() {
317 private void SwigDirectorMethodputByte(
byte value) {
321 private void SwigDirectorMethodputBytes(IntPtr buffer) {
325 private void SwigDirectorMethodcopyDataTo__SWIG_0(IntPtr pDestination, UInt64 sourceStart, UInt64 sourceEnd) {
328, sourceStart , sourceEnd );
331 private void SwigDirectorMethodcopyDataTo__SWIG_1(IntPtr pDestination, UInt64 sourceStart) {
337 private void SwigDirectorMethodcopyDataTo__SWIG_2(IntPtr pDestination) {
343 private UInt32 SwigDirectorMethodgetShareMode() {
349 [
return: MarshalAs(UnmanagedType.LPWStr)]
382 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
383 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
384 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { };
385 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { };
386 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { };
387 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { };
388 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { };
389 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { };
390 private static global::System.Type[] swigMethodTypes8 =
new global::System.Type[] { typeof(Int64 ), typeof(
FilerSeekType) };
391 private static global::System.Type[] swigMethodTypes9 =
new global::System.Type[] { };
392 private static global::System.Type[] swigMethodTypes10 =
new global::System.Type[] { typeof(
byte ) };
393 private static global::System.Type[] swigMethodTypes11 =
new global::System.Type[] { typeof(
byte[] ) };
394 private static global::System.Type[] swigMethodTypes12 =
new global::System.Type[] { typeof(
OdStreamBuf), typeof(UInt64 ), typeof(UInt64 ) };
395 private static global::System.Type[] swigMethodTypes13 =
new global::System.Type[] { typeof(
OdStreamBuf), typeof(UInt64 ) };
396 private static global::System.Type[] swigMethodTypes14 =
new global::System.Type[] { typeof(
OdStreamBuf) };
397 private static global::System.Type[] swigMethodTypes15 =
new global::System.Type[] { };
static global::System.Exception Retrieve()
static void OdStreamBuf_copyDataToSwigExplicitOdStreamBuf__SWIG_0(HandleRef jarg1, HandleRef jarg2, UInt64 jarg3, UInt64 jarg4)
static void OdStreamBuf_rewind(HandleRef jarg1)
static void OdStreamBuf_putBytes(HandleRef jarg1, IntPtr jarg2)
static UInt64 OdStreamBuf_tellSwigExplicitOdStreamBuf(HandleRef jarg1)
static void OdStreamBuf_getBytes(HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static string OdStreamBuf_getRealClassName(IntPtr jarg1)
static IntPtr OdStreamBuf_queryX(HandleRef jarg1, HandleRef jarg2)
static UInt32 OdStreamBuf_getBytesByNum(HandleRef jarg1, IntPtr jarg2, UInt64 jarg3, UInt32 jarg4)
static String OdStreamBuf_fileNameSwigExplicitOdStreamBuf(HandleRef jarg1)
static void delete_OdStreamBuf(HandleRef jarg1)
static void OdStreamBuf_putByte(HandleRef jarg1, byte jarg2)
static byte OdStreamBuf_getByte(HandleRef jarg1)
static IntPtr OdStreamBuf_desc()
static void OdStreamBuf_copyDataToSwigExplicitOdStreamBuf__SWIG_2(HandleRef jarg1, HandleRef jarg2)
static void OdStreamBuf_copyDataTo__SWIG_0(HandleRef jarg1, HandleRef jarg2, UInt64 jarg3, UInt64 jarg4)
static void OdStreamBuf_copyDataTo__SWIG_2(HandleRef jarg1, HandleRef jarg2)
static void OdStreamBuf_truncate(HandleRef jarg1)
static void OdStreamBuf_putBytesSwigExplicitOdStreamBuf(HandleRef jarg1, IntPtr jarg2)
static void OdStreamBuf_putByteSwigExplicitOdStreamBuf(HandleRef jarg1, byte jarg2)
static IntPtr OdStreamBuf_createObject()
static void OdStreamBuf_copyDataToSwigExplicitOdStreamBuf__SWIG_1(HandleRef jarg1, HandleRef jarg2, UInt64 jarg3)
static String OdStreamBuf_fileName(HandleRef jarg1)
static byte OdStreamBuf_getByteSwigExplicitOdStreamBuf(HandleRef jarg1)
static IntPtr OdStreamBuf_cast(HandleRef jarg1)
static UInt64 OdStreamBuf_seek(HandleRef jarg1, Int64 jarg2, int jarg3)
static IntPtr OdStreamBuf_isA(HandleRef jarg1)
static IntPtr OdStreamBuf_queryXSwigExplicitOdStreamBuf(HandleRef jarg1, HandleRef jarg2)
static UInt64 OdStreamBuf_tell(HandleRef jarg1)
static void OdStreamBuf_copyDataTo__SWIG_1(HandleRef jarg1, HandleRef jarg2, UInt64 jarg3)
static void OdStreamBuf_rewindSwigExplicitOdStreamBuf(HandleRef jarg1)
static void OdStreamBuf_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdStreamBuf.SwigDelegateOdStreamBuf_0 delegate0, OdStreamBuf.SwigDelegateOdStreamBuf_1 delegate1, OdStreamBuf.SwigDelegateOdStreamBuf_2 delegate2, OdStreamBuf.SwigDelegateOdStreamBuf_3 delegate3, OdStreamBuf.SwigDelegateOdStreamBuf_4 delegate4, OdStreamBuf.SwigDelegateOdStreamBuf_5 delegate5, OdStreamBuf.SwigDelegateOdStreamBuf_6 delegate6, OdStreamBuf.SwigDelegateOdStreamBuf_7 delegate7, OdStreamBuf.SwigDelegateOdStreamBuf_8 delegate8, OdStreamBuf.SwigDelegateOdStreamBuf_9 delegate9, OdStreamBuf.SwigDelegateOdStreamBuf_10 delegate10, OdStreamBuf.SwigDelegateOdStreamBuf_11 delegate11, OdStreamBuf.SwigDelegateOdStreamBuf_12 delegate12, OdStreamBuf.SwigDelegateOdStreamBuf_13 delegate13, OdStreamBuf.SwigDelegateOdStreamBuf_14 delegate14, OdStreamBuf.SwigDelegateOdStreamBuf_15 delegate15)
static UInt32 OdStreamBuf_getShareModeSwigExplicitOdStreamBuf(HandleRef jarg1)
static UInt64 OdStreamBuf_length(HandleRef jarg1)
static void OdStreamBuf_truncateSwigExplicitOdStreamBuf(HandleRef jarg1)
static UInt64 OdStreamBuf_lengthSwigExplicitOdStreamBuf(HandleRef jarg1)
static bool OdStreamBuf_isEofSwigExplicitOdStreamBuf(HandleRef jarg1)
static IntPtr OdStreamBuf_isASwigExplicitOdStreamBuf(HandleRef jarg1)
static bool OdStreamBuf_isEof(HandleRef jarg1)
static UInt32 OdStreamBuf_getShareMode(HandleRef jarg1)
static UInt64 OdStreamBuf_seekSwigExplicitOdStreamBuf(HandleRef jarg1, Int64 jarg2, int jarg3)
static HandleRef getCPtr(OdRxClass obj)
static HandleRef getCPtr(OdRxObject obj)
delegate UInt64 SwigDelegateOdStreamBuf_4()
static HandleRef getCPtr(OdStreamBuf obj)
delegate void SwigDelegateOdStreamBuf_6()
delegate void SwigDelegateOdStreamBuf_7()
virtual void putBytes(byte[] buffer)
delegate UInt32 SwigDelegateOdStreamBuf_15()
delegate void SwigDelegateOdStreamBuf_12(IntPtr pDestination, UInt64 sourceStart, UInt64 sourceEnd)
delegate void SwigDelegateOdStreamBuf_10(byte value)
delegate IntPtr SwigDelegateOdStreamBuf_1()
delegate UInt64 SwigDelegateOdStreamBuf_8(Int64 offset, int seekType)
virtual void copyDataTo(OdStreamBuf pDestination, UInt64 sourceStart)
delegate UInt64 SwigDelegateOdStreamBuf_5()
delegate void SwigDelegateOdStreamBuf_14(IntPtr pDestination)
delegate String SwigDelegateOdStreamBuf_2()
virtual UInt64 seek(Int64 offset, FilerSeekType seekType)
static new OdRxClass desc()
override OdRxObject queryX(OdRxClass protocolClass)
override void Dispose(bool disposing)
delegate void SwigDelegateOdStreamBuf_11(IntPtr buffer)
virtual void copyDataTo(OdStreamBuf pDestination, UInt64 sourceStart, UInt64 sourceEnd)
static OdStreamBuf cast(OdRxObject pObj)
static string getRealClassName(IntPtr ptr)
virtual String fileName()
delegate void SwigDelegateOdStreamBuf_13(IntPtr pDestination, UInt64 sourceStart)
virtual void copyDataTo(OdStreamBuf pDestination)
virtual UInt32 getShareMode()
static OdStreamBuf createObject()
virtual void putByte(byte value)
delegate bool SwigDelegateOdStreamBuf_3()
delegate byte SwigDelegateOdStreamBuf_9()
virtual UInt32 getBytesByNum(OdUInt8Array data, UInt64 startPos, UInt32 numBytes)
OdStreamBuf(IntPtr cPtr, bool cMemoryOwn)
delegate IntPtr SwigDelegateOdStreamBuf_0(IntPtr protocolClass)
static HandleRef getCPtr(OdUInt8Array obj)