internal OutputSink(Stream stream)
		{
			this.Stream = stream;
			this.data = GCHandle.Alloc(this);
			IntPtr sinkData = GCHandle.ToIntPtr(data);
			this.TidyOutputSink = new Interop.TidyOutputSink(sinkData, 
				new Interop.TidyPutByteFunc(OutputSinkCallback.OnPutByte));
		}
        internal OutputSink(Stream stream)
        {
            this.Stream = stream;
            this.data   = GCHandle.Alloc(this);
            IntPtr sinkData = GCHandle.ToIntPtr(data);

            this.TidyOutputSink = new Interop.TidyOutputSink(sinkData,
                                                             new Interop.TidyPutByteFunc(OutputSinkCallback.OnPutByte));
        }
Example #3
0
 internal static extern int tidySaveSink(IntPtr tdoc, ref TidyOutputSink sink);
Example #4
0
 internal static extern int tidySetErrorSink(IntPtr tdoc, ref TidyOutputSink sink);
Example #5
0
 int IPInvoke.tidySetErrorSink(IntPtr tdoc, ref TidyOutputSink sink)
 {
     return tidySetErrorSink(tdoc, ref sink);
 }
Example #6
0
 public static extern int tidySaveSink(IntPtr tdoc, ref TidyOutputSink sink);
Example #7
0
 internal OutputSink(Stream stream)
 {
     this.stream = stream;
     TidyOutputSink = new TidyOutputSink(OnPutByte);
 }