C# Class Hjg.Pngcs.ProgressiveOutputStream

stream that outputs to memory and allows to flush fragments every 'size' bytes to some other destination
Inheritance: System.IO.MemoryStream
Show file Open project: devedse/DeveMazeGenerator

Public Methods

Method Description
Close ( ) : void
Flush ( ) : void
GetCountFlushed ( ) : long
ProgressiveOutputStream ( int size_0 ) : System
Write ( byte b ) : void
Write ( byte b, int off, int len ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
FlushBuffer ( byte b, int n ) : void

Private Methods

Method Description
CheckFlushBuffer ( bool forced ) : void

if it's time to flush data (or if forced==true) calls abstract method flushBuffer() and cleans those bytes from own buffer

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

FlushBuffer() protected abstract method

protected abstract FlushBuffer ( byte b, int n ) : void
b byte
n int
return void

GetCountFlushed() public method

public GetCountFlushed ( ) : long
return long

ProgressiveOutputStream() public method

public ProgressiveOutputStream ( int size_0 ) : System
size_0 int
return System

Write() public method

public Write ( byte b ) : void
b byte
return void

Write() public method

public Write ( byte b, int off, int len ) : void
b byte
off int
len int
return void