MCPcopy Create free account
hub / github.com/Rat431/ColdAPI_Steam / CFileWriteStreamCancel

Function CFileWriteStreamCancel

src/ColdAPI_Steam/ColdManager.cpp:572–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570 return 1;
571 }
572 int32_t CFileWriteStreamCancel(uint64_t hStream)
573 {
574 if (!Steam_Config::RemoteStorage)
575 return 1;
576
577 if (!hStream)
578 return 2;
579
580 auto StreamRequested = Streams.find(hStream);
581 if (StreamRequested == Streams.end()) {
582 return 2;
583 }
584 if (StreamRequested->second.Buffer)
585 VirtualFree(StreamRequested->second.Buffer, NULL, MEM_RELEASE);
586 if (StreamRequested->second.FileNameS)
587 VirtualFree(StreamRequested->second.FileNameS, NULL, MEM_RELEASE);
588 Streams.erase(StreamRequested);
589 return 1;
590 }
591 bool bCFileWriteStreamWriteChunk(uint64_t hStream, const void* pvData, int32_t cubData)
592 {
593 if (!Steam_Config::RemoteStorage)

Callers 3

FileWriteStreamCancelMethod · 0.85
FileWriteStreamCancelMethod · 0.85
FileWriteStreamCancelMethod · 0.85

Calls

no outgoing calls

Tested by 3

FileWriteStreamCancelMethod · 0.68
FileWriteStreamCancelMethod · 0.68
FileWriteStreamCancelMethod · 0.68