Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiDataExtractor.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 OdGiDataExtractor : 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 OdGiDataExtractor(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(OdGiDataExtractor 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 virtual bool registerDataBegin(byte /*SIMPLETYPE*/ dataId, UInt64 /*SIMPLETYPE*/ localOffset) {
52 bool ret = GlobalsPINVOKE.OdGiDataExtractor_registerDataBegin(swigCPtr, dataId /*SIMPLETYPE*/, localOffset /*SIMPLETYPE*/);
54 return ret;
55 }
56
57 public virtual bool registerDataEnd(byte /*SIMPLETYPE*/ dataId, UInt64 /*SIMPLETYPE*/ localOffset) {
58 bool ret = GlobalsPINVOKE.OdGiDataExtractor_registerDataEnd(swigCPtr, dataId /*SIMPLETYPE*/, localOffset /*SIMPLETYPE*/);
60 return ret;
61 }
62
63 public virtual UInt64 tell() {
64// test csout
65 /*SIMPLETYPE*/
66 UInt64 ret = GlobalsPINVOKE.OdGiDataExtractor_tell(swigCPtr);
68 return ret;
69 }
70
71 public virtual bool beginExtraction(byte /*SIMPLETYPE*/ dataId) {
72 bool ret = GlobalsPINVOKE.OdGiDataExtractor_beginExtraction(swigCPtr, dataId /*SIMPLETYPE*/);
74 return ret;
75 }
76
77 public virtual bool endExtraction(byte /*SIMPLETYPE*/ dataId) {
78 bool ret = GlobalsPINVOKE.OdGiDataExtractor_endExtraction(swigCPtr, dataId /*SIMPLETYPE*/);
80 return ret;
81 }
82
83 public virtual bool seekFromLocalOffset(UInt64 /*SIMPLETYPE*/ offset) {
84 bool ret = GlobalsPINVOKE.OdGiDataExtractor_seekFromLocalOffset(swigCPtr, offset /*SIMPLETYPE*/);
86 return ret;
87 }
88
89 public virtual void extractBytes(IntPtr buffer, UInt32 /*SIMPLETYPE*/ numBytes) {
90 GlobalsPINVOKE.OdGiDataExtractor_extractBytes(swigCPtr, buffer, numBytes /*SIMPLETYPE*/);
92 }
93
94 public virtual double extractDouble() {
97 return ret;
98 }
99
100 public virtual Int32 extractInt64() {
101// test csout
102 /*SIMPLETYPE*/
103 Int32 ret = GlobalsPINVOKE.OdGiDataExtractor_extractInt64(swigCPtr);
105 return ret;
106 }
107
108 public virtual Int32 extractInt32() {
109// test csout
110 /*SIMPLETYPE*/
111 Int32 ret = GlobalsPINVOKE.OdGiDataExtractor_extractInt32(swigCPtr);
113 return ret;
114 }
115
116 public virtual Int16 extractInt16() {
117// test csout
118 /*SIMPLETYPE*/
119 Int16 ret = GlobalsPINVOKE.OdGiDataExtractor_extractInt16(swigCPtr);
121 return ret;
122 }
123
124 public virtual byte extractByte() {
125// test csout
126 /*SIMPLETYPE*/
127 byte ret = GlobalsPINVOKE.OdGiDataExtractor_extractByte(swigCPtr);
129 return ret;
130 }
131
132 public virtual bool extractBool() {
135 return ret;
136 }
137
138}
139
140}
static global::System.Exception Retrieve()
static void OdGiDataExtractor_extractBytes(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static byte OdGiDataExtractor_extractByte(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 OdGiDataExtractor_extractInt64(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiDataExtractor_registerDataEnd(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, UInt64 jarg3)
static double OdGiDataExtractor_extractDouble(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt64 OdGiDataExtractor_tell(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiDataExtractor_endExtraction(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static bool OdGiDataExtractor_registerDataBegin(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, UInt64 jarg3)
static bool OdGiDataExtractor_seekFromLocalOffset(global::System.Runtime.InteropServices.HandleRef jarg1, UInt64 jarg2)
static void delete_OdGiDataExtractor(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiDataExtractor_extractBool(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiDataExtractor_beginExtraction(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static Int16 OdGiDataExtractor_extractInt16(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 OdGiDataExtractor_extractInt32(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual bool registerDataEnd(byte dataId, UInt64 localOffset)
virtual bool seekFromLocalOffset(UInt64 offset)
OdGiDataExtractor(IntPtr cPtr, bool cMemoryOwn)
virtual bool registerDataBegin(byte dataId, UInt64 localOffset)
virtual void extractBytes(IntPtr buffer, UInt32 numBytes)
virtual bool beginExtraction(byte dataId)
static HandleRef getCPtr(OdGiDataExtractor obj)
virtual void Dispose(bool disposing)
virtual bool endExtraction(byte dataId)