|
static SteamAPICall_t | CommitPublishedFileUpdate (PublishedFileUpdateHandle_t updateHandle) |
|
static PublishedFileUpdateHandle_t | CreatePublishedFileUpdateRequest (PublishedFileId_t unPublishedFileId) |
|
static SteamAPICall_t | DeletePublishedFile (PublishedFileId_t unPublishedFileId) |
|
static SteamAPICall_t | EnumeratePublishedFilesByUserAction (EWorkshopFileAction eAction, uint unStartIndex) |
|
static SteamAPICall_t | EnumeratePublishedWorkshopFiles (EWorkshopEnumerationType eEnumerationType, uint unStartIndex, uint unCount, uint unDays, System.Collections.Generic.IList< string > pTags, System.Collections.Generic.IList< string > pUserTags) |
|
static SteamAPICall_t | EnumerateUserPublishedFiles (uint unStartIndex) |
|
static SteamAPICall_t | EnumerateUserSharedWorkshopFiles (CSteamID steamId, uint unStartIndex, System.Collections.Generic.IList< string > pRequiredTags, System.Collections.Generic.IList< string > pExcludedTags) |
|
static SteamAPICall_t | EnumerateUserSubscribedFiles (uint unStartIndex) |
|
static bool | FileDelete (string pchFile) |
|
static bool | FileExists (string pchFile) |
|
static bool | FileForget (string pchFile) |
|
static bool | FilePersisted (string pchFile) |
|
static int | FileRead (string pchFile, byte[] pvData, int cubDataToRead) |
|
static SteamAPICall_t | FileReadAsync (string pchFile, uint nOffset, uint cubToRead) |
|
static bool | FileReadAsyncComplete (SteamAPICall_t hReadCall, byte[] pvBuffer, uint cubToRead) |
|
static SteamAPICall_t | FileShare (string pchFile) |
|
static bool | FileWrite (string pchFile, byte[] pvData, int cubData) |
|
static SteamAPICall_t | FileWriteAsync (string pchFile, byte[] pvData, uint cubData) |
|
static bool | FileWriteStreamCancel (UGCFileWriteStreamHandle_t writeHandle) |
|
static bool | FileWriteStreamClose (UGCFileWriteStreamHandle_t writeHandle) |
|
static UGCFileWriteStreamHandle_t | FileWriteStreamOpen (string pchFile) |
|
static bool | FileWriteStreamWriteChunk (UGCFileWriteStreamHandle_t writeHandle, byte[] pvData, int cubData) |
|
static int | GetCachedUGCCount () |
|
static UGCHandle_t | GetCachedUGCHandle (int iCachedContent) |
|
static int | GetFileCount () |
|
static string | GetFileNameAndSize (int iFile, out int pnFileSizeInBytes) |
|
static int | GetFileSize (string pchFile) |
|
static long | GetFileTimestamp (string pchFile) |
|
static SteamAPICall_t | GetPublishedFileDetails (PublishedFileId_t unPublishedFileId, uint unMaxSecondsOld) |
|
static SteamAPICall_t | GetPublishedItemVoteDetails (PublishedFileId_t unPublishedFileId) |
|
static bool | GetQuota (out ulong pnTotalBytes, out ulong puAvailableBytes) |
|
static ERemoteStoragePlatform | GetSyncPlatforms (string pchFile) |
|
static bool | GetUGCDetails (UGCHandle_t hContent, out AppId_t pnAppID, out string ppchName, out int pnFileSizeInBytes, out CSteamID pSteamIDOwner) |
|
static bool | GetUGCDownloadProgress (UGCHandle_t hContent, out int pnBytesDownloaded, out int pnBytesExpected) |
|
static SteamAPICall_t | GetUserPublishedItemVoteDetails (PublishedFileId_t unPublishedFileId) |
|
static bool | IsCloudEnabledForAccount () |
|
static bool | IsCloudEnabledForApp () |
|
static SteamAPICall_t | PublishVideo (EWorkshopVideoProvider eVideoProvider, string pchVideoAccount, string pchVideoIdentifier, string pchPreviewFile, AppId_t nConsumerAppId, string pchTitle, string pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, System.Collections.Generic.IList< string > pTags) |
|
static SteamAPICall_t | PublishWorkshopFile (string pchFile, string pchPreviewFile, AppId_t nConsumerAppId, string pchTitle, string pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, System.Collections.Generic.IList< string > pTags, EWorkshopFileType eWorkshopFileType) |
|
static void | SetCloudEnabledForApp (bool bEnabled) |
|
static bool | SetSyncPlatforms (string pchFile, ERemoteStoragePlatform eRemoteStoragePlatform) |
|
static SteamAPICall_t | SetUserPublishedFileAction (PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) |
|
static SteamAPICall_t | SubscribePublishedFile (PublishedFileId_t unPublishedFileId) |
|
static SteamAPICall_t | UGCDownload (UGCHandle_t hContent, uint unPriority) |
|
static SteamAPICall_t | UGCDownloadToLocation (UGCHandle_t hContent, string pchLocation, uint unPriority) |
|
static int | UGCRead (UGCHandle_t hContent, byte[] pvData, int cubDataToRead, uint cOffset, EUGCReadAction eAction) |
|
static SteamAPICall_t | UnsubscribePublishedFile (PublishedFileId_t unPublishedFileId) |
|
static bool | UpdatePublishedFileDescription (PublishedFileUpdateHandle_t updateHandle, string pchDescription) |
|
static bool | UpdatePublishedFileFile (PublishedFileUpdateHandle_t updateHandle, string pchFile) |
|
static bool | UpdatePublishedFilePreviewFile (PublishedFileUpdateHandle_t updateHandle, string pchPreviewFile) |
|
static bool | UpdatePublishedFileSetChangeDescription (PublishedFileUpdateHandle_t updateHandle, string pchChangeDescription) |
|
static bool | UpdatePublishedFileTags (PublishedFileUpdateHandle_t updateHandle, System.Collections.Generic.IList< string > pTags) |
|
static bool | UpdatePublishedFileTitle (PublishedFileUpdateHandle_t updateHandle, string pchTitle) |
|
static bool | UpdatePublishedFileVisibility (PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility) |
|
static SteamAPICall_t | UpdateUserPublishedItemVote (PublishedFileId_t unPublishedFileId, bool bVoteUp) |
|
static int Steamworks.SteamRemoteStorage.UGCRead |
( |
UGCHandle_t |
hContent, |
|
|
byte[] |
pvData, |
|
|
int |
cubDataToRead, |
|
|
uint |
cOffset, |
|
|
EUGCReadAction |
eAction |
|
) |
| |
|
inlinestatic |
After download, gets the content of the file.
Small files can be read all at once by calling this function with an offset of 0 and cubDataToRead equal to the size of the file.
Larger files can be read in chunks to reduce memory usage (since both sides of the IPC client and the game itself must allocate
enough memory for each chunk). Once the last byte is read, the file is implicitly closed and further calls to UGCRead will fail
unless UGCDownload is called again.
For especially large files (anything over 100MB) it is a requirement that the file is read in chunks.