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();
52 DelegateHolder.OnHoldSwigDirectorDelegates(
this);
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
170 private void getBytes(IntPtr buffer, UInt32 numBytes) {
181IntPtr p_buffer=
Teigha.
Core.Helpers.MarshalbyteFixedArray(buffer);
186Marshal.FreeCoTaskMem(p_buffer);
227 private void SwigDirectorConnect() {
228 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
230 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
232 if (SwigDerivedClassHasMethod(
"copyFrom", swigMethodTypes2))
234 if (SwigDerivedClassHasMethod(
"fileName", swigMethodTypes3))
236 if (SwigDerivedClassHasMethod(
"isEof", swigMethodTypes4))
238 if (SwigDerivedClassHasMethod(
"tell", swigMethodTypes5))
240 if (SwigDerivedClassHasMethod(
"length", swigMethodTypes6))
242 if (SwigDerivedClassHasMethod(
"truncate", swigMethodTypes7))
244 if (SwigDerivedClassHasMethod(
"rewind", swigMethodTypes8))
246 if (SwigDerivedClassHasMethod(
"seek", swigMethodTypes9))
248 if (SwigDerivedClassHasMethod(
"getByte", swigMethodTypes10))
250 if (SwigDerivedClassHasMethod(
"putByte", swigMethodTypes11))
252 if (SwigDerivedClassHasMethod(
"putBytes", swigMethodTypes12))
254 if (SwigDerivedClassHasMethod(
"copyDataTo", swigMethodTypes13))
256 if (SwigDerivedClassHasMethod(
"copyDataTo", swigMethodTypes14))
258 if (SwigDerivedClassHasMethod(
"copyDataTo", swigMethodTypes15))
260 if (SwigDerivedClassHasMethod(
"getShareMode", swigMethodTypes16))
262 GlobalsPINVOKE.
OdStreamBuf_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16);
265 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
266 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);
267 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(
OdStreamBuf));
268 return hasDerivedMethod;
271 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
275 (OdRxClass)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,
false)
280 private IntPtr SwigDirectorMethodisA() {
283 OdRxClass.getCPtr(
isA()).Handle
287 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
293 [
return: MarshalAs(UnmanagedType.LPWStr)]
294 private String SwigDirectorMethodfileName() {
298 private bool SwigDirectorMethodisEof() {
302 private UInt64 SwigDirectorMethodtell() {
306 private UInt64 SwigDirectorMethodlength() {
310 private void SwigDirectorMethodtruncate() {
314 private void SwigDirectorMethodrewind() {
318 private UInt64 SwigDirectorMethodseek(Int64 offset,
int seekType) {
322 private byte SwigDirectorMethodgetByte() {
326 private void SwigDirectorMethodputByte(
byte value) {
330 private void SwigDirectorMethodputBytes(IntPtr buffer) {
334 private void SwigDirectorMethodcopyDataTo__SWIG_0(IntPtr pDestination, UInt64 sourceStart, UInt64 sourceEnd) {
337, sourceStart , sourceEnd );
340 private void SwigDirectorMethodcopyDataTo__SWIG_1(IntPtr pDestination, UInt64 sourceStart) {
346 private void SwigDirectorMethodcopyDataTo__SWIG_2(IntPtr pDestination) {
352 private UInt32 SwigDirectorMethodgetShareMode() {
359 [
return: MarshalAs(UnmanagedType.LPWStr)]
393 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
394 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
395 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(
OdRxObject) };
396 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { };
397 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { };
398 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { };
399 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { };
400 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { };
401 private static global::System.Type[] swigMethodTypes8 =
new global::System.Type[] { };
402 private static global::System.Type[] swigMethodTypes9 =
new global::System.Type[] { typeof(Int64), typeof(
FilerSeekType) };
403 private static global::System.Type[] swigMethodTypes10 =
new global::System.Type[] { };
404 private static global::System.Type[] swigMethodTypes11 =
new global::System.Type[] { typeof(
byte) };
405 private static global::System.Type[] swigMethodTypes12 =
new global::System.Type[] { typeof(
byte[] ) };
406 private static global::System.Type[] swigMethodTypes13 =
new global::System.Type[] { typeof(
OdStreamBuf), typeof(UInt64), typeof(UInt64) };
407 private static global::System.Type[] swigMethodTypes14 =
new global::System.Type[] { typeof(
OdStreamBuf), typeof(UInt64) };
408 private static global::System.Type[] swigMethodTypes15 =
new global::System.Type[] { typeof(
OdStreamBuf) };
409 private static global::System.Type[] swigMethodTypes16 =
new global::System.Type[] { };
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, OdStreamBuf.SwigDelegateOdStreamBuf_16 delegate16)