C# Class SteamKit2.Blob.BlobReader

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

Public Methods

Method 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

Method 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 method

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

CreateFrom() public static method

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

Dispose() public method

Dispose the BlobReader, releasing any Streams allocated.
public Dispose ( ) : void
return void

ReadFieldBlob() public method

Reads a field as a Blob
public ReadFieldBlob ( ) : BlobReader
return BlobReader

ReadFieldHeader() public method

Read the next Field in the blob
public ReadFieldHeader ( ) : void
return void

SkipField() public method

Skip over a field, discarding the contents of a field
public SkipField ( ) : void
return void

SkipSpare() public method

Skip over the spare, discarding the contents
public SkipSpare ( ) : void
return void