Esempio n. 1
0
        public XenonReader(Stream source, string name, int bufferSize = 1024 * 1024)
        {
            this.name = name;
            this.size = bufferSize;

            this.inner = new BufferWindow(Environment.ProcessorCount, size, source);
        }
Esempio n. 2
0
 public static Task Process(this BufferWindow window, Action <BufferEntry> callback)
 {
     return(window.Process(new CallbackHandler(callback)));
 }