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