Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PDFIStream.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 PDFIStream : PDFBaseObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public PDFIStream(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.PDFIStream_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(PDFIStream obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public override bool isKindOf(PDFTypeId objType) {
43 bool ret = GlobalsPINVOKE.PDFIStream_isKindOf(swigCPtr, (int)objType);
45 return ret;
46 }
47
48 public override PDFTypeId type() {
51 return ret;
52 }
53
54 public static PDFIStream createObject() {
55 MemoryManager mMan = MemoryManager.GetMemoryManager();
56 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #25
58
59 PDFIStream ret = null;
60 if (null != mTrans)
61 {
62 mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<PDFIStream>(typeof(PDFIStream), ptr, true));
63 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFIStream>(typeof(PDFIStream), ptr, false);
64 }
65 else
66 {
67 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFIStream>(typeof(PDFIStream), ptr, true);
68 }
69
71 return ret;
72}
73
74 public virtual byte getByte() {
75// test csout
76 /*SIMPLETYPE*/
77 byte ret = GlobalsPINVOKE.PDFIStream_getByte(swigCPtr);
79 return ret;
80 }
81
82 public virtual void getBytes(IntPtr buffer, UInt32 /*SIMPLETYPE*/ nLen) {
83 GlobalsPINVOKE.PDFIStream_getBytes(swigCPtr, buffer, nLen /*SIMPLETYPE*/);
85 }
86
87 public virtual void setStreamBuf(OdStreamBuf pBuf) {
90 }
91
92 public virtual String fileName() {
93 string ret = GlobalsPINVOKE.PDFIStream_fileName(swigCPtr);
95 return ret;
96}
97
98 public virtual bool isEof() {
99 bool ret = GlobalsPINVOKE.PDFIStream_isEof(swigCPtr);
101 return ret;
102 }
103
104 public virtual UInt32 tell() {
105// test csout
106 /*SIMPLETYPE*/
107 UInt32 ret = GlobalsPINVOKE.PDFIStream_tell(swigCPtr);
109 return ret;
110 }
111
112 public virtual UInt32 length() {
113// test csout
114 /*SIMPLETYPE*/
115 UInt32 ret = GlobalsPINVOKE.PDFIStream_length(swigCPtr);
117 return ret;
118 }
119
120 public virtual void truncate() {
123 }
124
125 public virtual void rewind() {
128 }
129
130 public virtual UInt32 seek(Int32 /*SIMPLETYPE*/ offset, FilerSeekType whence) {
131// test csout
132 /*SIMPLETYPE*/
133 UInt32 ret = GlobalsPINVOKE.PDFIStream_seek(swigCPtr, offset /*SIMPLETYPE*/, (int)whence);
135 return ret;
136 }
137
138 public virtual void copyDataTo(PDFIStream pDest, UInt32 /*SIMPLETYPE*/ nSrcStart, UInt32 /*SIMPLETYPE*/ nSrcEnd) {
139 GlobalsPINVOKE.PDFIStream_copyDataTo(swigCPtr, PDFIStream.getCPtr(pDest), nSrcStart /*SIMPLETYPE*/, nSrcEnd /*SIMPLETYPE*/);
141 }
142
143 public virtual UInt32 getShareMode() {
144// test csout
145 /*SIMPLETYPE*/
146 UInt32 ret = GlobalsPINVOKE.PDFIStream_getShareMode(swigCPtr);
148 return ret;
149 }
150
151 public virtual void putEOL() {
154 }
155
156 public virtual void putBool(bool val) {
157 GlobalsPINVOKE.PDFIStream_putBool(swigCPtr, val);
159 }
160
161 public virtual void putDouble(double val) {
164 }
165
166 public virtual void putInt32(Int32 /*SIMPLETYPE*/ val) {
167 GlobalsPINVOKE.PDFIStream_putInt32(swigCPtr, val /*SIMPLETYPE*/);
169 }
170
171 public virtual void putString(string val) {
174 }
175
176 public virtual void putByte(byte /*SIMPLETYPE*/ val) {
177 GlobalsPINVOKE.PDFIStream_putByte(swigCPtr, val /*SIMPLETYPE*/);
179 }
180
181 public virtual void putBytes(IntPtr buffer, UInt32 /*SIMPLETYPE*/ nLen) {
182 GlobalsPINVOKE.PDFIStream_putBytes(swigCPtr, buffer, nLen /*SIMPLETYPE*/);
184 }
185
186 public virtual bool Export(PDFIStream pStream, PDFVersion ver) {
187 bool ret = GlobalsPINVOKE.PDFIStream_Export(swigCPtr, PDFIStream.getCPtr(pStream), PDFVersion.getCPtr(ver));
189 return ret;
190 }
191
192}
193
194}
static global::System.Exception Retrieve()
static void PDFIStream_putString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static void PDFIStream_getBytes(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static bool PDFIStream_Export(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static UInt32 PDFIStream_tell(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 PDFIStream_getShareMode(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFIStream_isEof(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr PDFIStream_createObject()
static void PDFIStream_putByte(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static void PDFIStream_putBool(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool PDFIStream_isKindOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void PDFIStream_putEOL(global::System.Runtime.InteropServices.HandleRef jarg1)
static byte PDFIStream_getByte(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 PDFIStream_seek(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2, int jarg3)
static void PDFIStream_rewind(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFIStream_putInt32(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void PDFIStream_putDouble(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static int PDFIStream_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFIStream_setStreamBuf(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void PDFIStream_copyDataTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3, UInt32 jarg4)
static void delete_PDFIStream(global::System.Runtime.InteropServices.HandleRef jarg1)
static String PDFIStream_fileName(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 PDFIStream_length(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFIStream_putBytes(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static void PDFIStream_truncate(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdStreamBuf obj)
Definition: OdStreamBuf.cs:25
virtual void setStreamBuf(OdStreamBuf pBuf)
Definition: PDFIStream.cs:87
virtual void putInt32(Int32 val)
Definition: PDFIStream.cs:166
virtual void putDouble(double val)
Definition: PDFIStream.cs:161
virtual void putBytes(IntPtr buffer, UInt32 nLen)
Definition: PDFIStream.cs:181
virtual void putByte(byte val)
Definition: PDFIStream.cs:176
virtual UInt32 tell()
Definition: PDFIStream.cs:104
PDFIStream(IntPtr cPtr, bool cMemoryOwn)
Definition: PDFIStream.cs:20
virtual UInt32 seek(Int32 offset, FilerSeekType whence)
Definition: PDFIStream.cs:130
virtual void copyDataTo(PDFIStream pDest, UInt32 nSrcStart, UInt32 nSrcEnd)
Definition: PDFIStream.cs:138
virtual bool Export(PDFIStream pStream, PDFVersion ver)
Definition: PDFIStream.cs:186
virtual UInt32 length()
Definition: PDFIStream.cs:112
override void Dispose(bool disposing)
Definition: PDFIStream.cs:29
override PDFTypeId type()
Definition: PDFIStream.cs:48
virtual void getBytes(IntPtr buffer, UInt32 nLen)
Definition: PDFIStream.cs:82
virtual void rewind()
Definition: PDFIStream.cs:125
virtual bool isEof()
Definition: PDFIStream.cs:98
virtual void putBool(bool val)
Definition: PDFIStream.cs:156
virtual void truncate()
Definition: PDFIStream.cs:120
virtual byte getByte()
Definition: PDFIStream.cs:74
virtual UInt32 getShareMode()
Definition: PDFIStream.cs:143
virtual String fileName()
Definition: PDFIStream.cs:92
virtual void putString(string val)
Definition: PDFIStream.cs:171
static HandleRef getCPtr(PDFIStream obj)
Definition: PDFIStream.cs:25
virtual void putEOL()
Definition: PDFIStream.cs:151
static PDFIStream createObject()
Definition: PDFIStream.cs:54
override bool isKindOf(PDFTypeId objType)
Definition: PDFIStream.cs:42
static HandleRef getCPtr(PDFVersion obj)
Definition: PDFVersion.cs:26