[Mono-list] IStream as Stream
Kornél Pál
kornelpal at gmail.com
Sun Apr 23 21:01:45 EDT 2006
Hi,
If you need IStream, you can use my classes.
ComIStreamWrapper implements IStream as a wrapper for Stream. This is a
fully functional read/write wrapper.
Mono has no COM support so ComIStreamMarshaler can be used to marshal
IStream as a COM interface.
Note that ComIStreamWrapper can be used with the built-in interface
marshaler of MS.NET and ComIStreamMarshaler can be used with any IStream
implementation even on MS.NET. So these two classes don't depend on each
other.
For example see gdipFunctions.cs and Image.cs.
If you need IStream to Stream wrapper, you have to create a class that
inherits Stream and implement it's methods by calling the appropriate
functions of an IStream object that is passed to your class in the
constructor. You can see in ComIStreamWrapper how IStream and Stream methods
are related.
Kornél
----- Original Message -----
From: "Abe Gillespie" <abe.gillespie at gmail.com>
To: "mono-list @ lists. ximian. com" <mono-list at lists.ximian.com>
Sent: Sunday, April 23, 2006 10:36 PM
Subject: [Mono-list] IStream as Stream
This is continuing from my "read / write string to stream" thread from
yesterday. What I need now is a way to connect a .Net Stream object
to an object that implements IStream.
Kornél - I see ComIStreamWrapper class you created to go from Stream
to IStream ... but I need the opposite IStream to Stream. Know where
I can start?
Thanks again!
-Abe
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list