C# Class NanoByte.Common.Streams.OffsetStream

This wrapper stream applies a constant byte offset to all access to an underlying stream.
Inheritance: Stream
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void
Flush ( ) : void
OffsetStream ( [ baseStream, long offset ) : System

Creates a new offset stream

Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
WriteByte ( byte value ) : void

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

OffsetStream() public méthode

Creates a new offset stream
public OffsetStream ( [ baseStream, long offset ) : System
baseStream [ Underlying stream for which all access will be offset.
offset long Number of bytes to offset the .
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

ReadByte() public méthode

public ReadByte ( ) : 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

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void