public int UGCRead(SteamTypes.UGCHandle handle, byte[] data, uint offset, UGCReadAction action)
        {
            CheckIfUsable();

            using (NativeBuffer buffer = new NativeBuffer(data))
            {
                int bytesRead = NativeMethods.Cloud_UGCRead(handle.AsUInt64, buffer.UnmanagedMemory,
                                                            buffer.UnmanagedSize, offset, (int)action);
                buffer.ReadFromUnmanagedMemory(bytesRead);
                return(bytesRead);
            }
        }
예제 #2
0
 // int
 public int UGCRead(UGCHandle_t hContent /*UGCHandle_t*/, IntPtr pvData /*void **/, int cubDataToRead /*int32*/, uint cOffset /*uint32*/, UGCReadAction eAction /*EUGCReadAction*/)
 {
     return(platform.ISteamRemoteStorage_UGCRead(hContent.Value, (IntPtr)pvData, cubDataToRead, cOffset, eAction));
 }
예제 #3
0
 internal int UGCRead(UGCHandle_t hContent, IntPtr pvData, int cubDataToRead, uint cOffset, UGCReadAction eAction)
 {
     return(_UGCRead(Self, hContent, pvData, cubDataToRead, cOffset, eAction));
 }
 private static extern int _UGCRead(IntPtr self, UGCHandle_t hContent, IntPtr pvData, int cubDataToRead, uint cOffset, UGCReadAction eAction);
예제 #5
0
        public int UGCRead(UGCHandle_t hContent, IntPtr pvData, int cubDataToRead, uint cOffset, UGCReadAction eAction)
        {
            var returnValue = _UGCRead(Self, hContent, pvData, cubDataToRead, cOffset, eAction);

            return(returnValue);
        }
        public int UGCRead(SteamTypes.UGCHandle handle, byte[] data, uint offset, UGCReadAction action)
        {
            CheckIfUsable();

            using (NativeBuffer buffer = new NativeBuffer(data))
            {
                int bytesRead = NativeMethods.Cloud_UGCRead(handle.AsUInt64, buffer.UnmanagedMemory,
                    buffer.UnmanagedSize, offset, (int)action);
                buffer.ReadFromUnmanagedMemory(bytesRead);
                return bytesRead;
            }
        }
예제 #7
0
        internal int UGCRead(UGCHandle_t hContent, IntPtr pvData, int cubDataToRead, uint cOffset, UGCReadAction eAction)
        {
            int self = this._UGCRead(this.Self, hContent, pvData, cubDataToRead, cOffset, eAction);

            return(self);
        }