C# Class CSharpUtils.Streams.ZeroStream

Inheritance: Stream
Show file Open project: soywiz/csharputils Class Usage Examples

Protected Properties

Property Type Description
ValueToRepeat byte
_Position long
_Size long

Public Methods

Method Description
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
ZeroStream ( long Size, byte ValueToRepeat = 0x00 ) : System

Method Details

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

ZeroStream() public method

public ZeroStream ( long Size, byte ValueToRepeat = 0x00 ) : System
Size long
ValueToRepeat byte
return System

Property Details

ValueToRepeat protected property

protected byte ValueToRepeat
return byte

_Position protected property

protected long _Position
return long

_Size protected property

protected long _Size
return long