C# Class SteamKit2.Blob.BlobReader

Represents the base blob reader that can process a binary blob.
Inheritance: IDisposable
Afficher le fichier Open project: Top-Cat/SteamBot Class Usage Examples

Méthodes publiques

Méthode Description
CreateFrom ( Stream inputSteam ) : BlobReader

Create a BlobReader from a Stream. Does not take ownership of the Stream.

CreateFrom ( string fileName ) : BlobReader

Create a new BlobReader from a file path

Dispose ( ) : void

Dispose the BlobReader, releasing any Streams allocated.

ReadFieldBlob ( ) : BlobReader

Reads a field as a Blob

ReadFieldHeader ( ) : void

Read the next Field in the blob

SkipField ( ) : void

Skip over a field, discarding the contents of a field

SkipSpare ( ) : void

Skip over the spare, discarding the contents

Private Methods

Méthode Description
BlobReader ( Stream blobSource, bool ownsSource = true ) : System
CanTakeBytes ( int size ) : bool
ReadBlobHeader ( ) : void
ReadFieldStream ( ) : Stream
TakeBytes ( int size ) : void
UnpackBlobIfNeeded ( ) : void

Method Details

CreateFrom() public static méthode

Create a BlobReader from a Stream. Does not take ownership of the Stream.
public static CreateFrom ( Stream inputSteam ) : BlobReader
inputSteam Stream Source
Résultat BlobReader

CreateFrom() public static méthode

Create a new BlobReader from a file path
public static CreateFrom ( string fileName ) : BlobReader
fileName string Path to blob
Résultat BlobReader

Dispose() public méthode

Dispose the BlobReader, releasing any Streams allocated.
public Dispose ( ) : void
Résultat void

ReadFieldBlob() public méthode

Reads a field as a Blob
public ReadFieldBlob ( ) : BlobReader
Résultat BlobReader

ReadFieldHeader() public méthode

Read the next Field in the blob
public ReadFieldHeader ( ) : void
Résultat void

SkipField() public méthode

Skip over a field, discarding the contents of a field
public SkipField ( ) : void
Résultat void

SkipSpare() public méthode

Skip over the spare, discarding the contents
public SkipSpare ( ) : void
Résultat void