C# Class CSharpUtils.Streams.MapStream

Inheritance: Stream
显示文件 Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
Flush ( ) : void

Map ( long Offset, Stream Stream ) : MapStream

MapStream ( ) : System

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

WriteSegmentsToStream ( Stream TargetStream ) : void

Function that writtes all the mappings into another stream. Useful for patching a file or memory.

Private Methods

Method Description
GetAvailableBytesOnCurrentStream ( ) : long

_PrepareCurrentStream ( ) : void

_Transfer ( byte Buffer, long Offset, long Count, Func Method ) : long

Method Details

Flush() public method

public Flush ( ) : void
return void

Map() public method

public Map ( long Offset, Stream Stream ) : MapStream
Offset long
Stream Stream
return MapStream

MapStream() public method

public MapStream ( ) : System
return System

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

WriteSegmentsToStream() public method

Function that writtes all the mappings into another stream. Useful for patching a file or memory.
public WriteSegmentsToStream ( Stream TargetStream ) : void
TargetStream Stream Stream to write the mapped contents to
return void