C# Class CSharpUtils.Streams.MapStream

Inheritance: Stream
Afficher le fichier Open project: soywiz/csharputils Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetAvailableBytesOnCurrentStream ( ) : long

_PrepareCurrentStream ( ) : void

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

Method Details

Flush() public méthode

public Flush ( ) : void
Résultat void

Map() public méthode

public Map ( long Offset, Stream Stream ) : MapStream
Offset long
Stream Stream
Résultat MapStream

MapStream() public méthode

public MapStream ( ) : System
Résultat System

Read() public méthode

public Read ( byte Buffer, int Offset, int Count ) : int
Buffer byte
Offset int
Count int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte Buffer, int Offset, int Count ) : void
Buffer byte
Offset int
Count int
Résultat void

WriteSegmentsToStream() public méthode

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
Résultat void