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));
        }
示例#3
0
 internal static extern int tidySaveSink(IntPtr tdoc, ref TidyOutputSink sink);
示例#4
0
 internal static extern int tidySetErrorSink(IntPtr tdoc, ref TidyOutputSink sink);
示例#5
0
 int IPInvoke.tidySetErrorSink(IntPtr tdoc, ref TidyOutputSink sink)
 {
     return tidySetErrorSink(tdoc, ref sink);
 }
示例#6
0
 public static extern int tidySaveSink(IntPtr tdoc, ref TidyOutputSink sink);
示例#7
0
 internal OutputSink(Stream stream)
 {
     this.stream = stream;
     TidyOutputSink = new TidyOutputSink(OnPutByte);
 }