C# Class SteamKit2.ContentServerClient.StorageSession

This represents a storage session with a storage server, used to download game content.
Inheritance: IDisposable
Exibir arquivo Open project: Top-Cat/SteamBot

Private Properties

Property Type Description
DecompressFileChunk int
DecryptFileChunk int
DownloadFileParts byte[]
SendCommand bool
StorageSession System

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DownloadChecksums ( ) : Steam2ChecksumData

Downloads the Steam2ChecksumData for this depot.

DownloadFile ( Steam2Manifest file, DownloadPriority priority = DownloadPriority.Low, byte cryptKey = null ) : byte[]

Downloads a specific file from the Steam servers.

DownloadManifest ( ) : Steam2Manifest

Downloads the Steam2Manifest which contains metadata representing the files within the depot.

DownloadUpdates ( uint oldVersion ) : uint[]

Downloads a list of updated FileIDs since the given version.

Private Methods

Method Description
DecompressFileChunk ( byte &chunk, int blockSize ) : int
DecryptFileChunk ( byte &chunk, int chunkLen, byte cryptKey ) : int
DownloadFileParts ( Steam2Manifest file, uint filePart, uint numParts, DownloadPriority priority = DownloadPriority.Low, byte cryptKey = null ) : byte[]
SendCommand ( byte cmd ) : bool
StorageSession ( ContentServerClient cli, uint depotId, uint depotVersion, Credentials credentials ) : System

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

DownloadChecksums() public method

Downloads the Steam2ChecksumData for this depot.
public DownloadChecksums ( ) : Steam2ChecksumData
return Steam2ChecksumData

DownloadFile() public method

Downloads a specific file from the Steam servers.
public DownloadFile ( Steam2Manifest file, DownloadPriority priority = DownloadPriority.Low, byte cryptKey = null ) : byte[]
file Steam2Manifest The file to download, given from the manifest.
priority DownloadPriority The download priority.
cryptKey byte The AES encryption key used for any encrypted files.
return byte[]

DownloadManifest() public method

Downloads the Steam2Manifest which contains metadata representing the files within the depot.
public DownloadManifest ( ) : Steam2Manifest
return Steam2Manifest

DownloadUpdates() public method

Downloads a list of updated FileIDs since the given version.
public DownloadUpdates ( uint oldVersion ) : uint[]
oldVersion uint The old version to compare to.
return uint[]