Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Write() [2/2]

override bool Terraria.Social.Steam.CloudSocialModule.Write ( string path,
byte[] data,
int length )
inline

Definition at line 39 of file CloudSocialModule.cs.

40 {
41 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
42 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
43 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
44 //IL_005f: Unknown result type (might be due to invalid IL or missing references)
45 lock (ioLock)
46 {
47 UGCFileWriteStreamHandle_t val = SteamRemoteStorage.FileWriteStreamOpen(path);
48 for (uint num = 0u; num < length; num += 1024)
49 {
50 int num2 = (int)Math.Min(1024L, length - num);
51 Array.Copy(data, num, writeBuffer, 0L, num2);
52 SteamRemoteStorage.FileWriteStreamWriteChunk(val, writeBuffer, num2);
53 }
54 return SteamRemoteStorage.FileWriteStreamClose(val);
55 }
56 }
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
Definition Array.cs:624
static byte Min(byte val1, byte val2)
Definition Math.cs:912

References System.Array.Copy(), Terraria.Social.Steam.CloudSocialModule.ioLock, System.L, System.length, System.Math.Min(), and Terraria.Social.Steam.CloudSocialModule.writeBuffer.