-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storage): Import missing interfaces from generated code
- Loading branch information
Showing
12 changed files
with
107 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma warning disable 108 // new keyword hiding | ||
#pragma warning disable 114 // new keyword hiding | ||
namespace Windows.Storage.Streams | ||
{ | ||
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ | ||
[global::Uno.NotImplemented] | ||
#endif | ||
public partial interface IContentTypeProvider | ||
{ | ||
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ | ||
string ContentType | ||
{ | ||
get; | ||
} | ||
#endif | ||
// Forced skipping of method Windows.Storage.Streams.IContentTypeProvider.ContentType.get | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
using System; | ||
using Windows.Foundation; | ||
|
||
namespace Windows.Storage.Streams | ||
{ | ||
public partial interface IInputStream : IDisposable | ||
{ | ||
IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(IBuffer buffer, uint count, InputStreamOptions options); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using Windows.Foundation; | ||
|
||
namespace Windows.Storage.Streams | ||
{ | ||
public partial interface IOutputStream : IDisposable | ||
{ | ||
IAsyncOperationWithProgress<uint, uint> WriteAsync(IBuffer buffer); | ||
|
||
IAsyncOperation<bool> FlushAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
|
||
namespace Windows.Storage.Streams | ||
{ | ||
public partial interface IRandomAccessStream : IDisposable, IInputStream, IOutputStream | ||
{ | ||
bool CanRead { get; } | ||
|
||
bool CanWrite { get; } | ||
|
||
ulong Position { get; } | ||
|
||
ulong Size { get; } | ||
|
||
IInputStream GetInputStreamAt( ulong position); | ||
|
||
IOutputStream GetOutputStreamAt( ulong position); | ||
|
||
void Seek( ulong position); | ||
|
||
IRandomAccessStream CloneStream(); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Uno.UWP/Storage/Streams/IRandomAccessStreamWithContentType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace Windows.Storage.Streams | ||
{ | ||
public partial interface IRandomAccessStreamWithContentType : IRandomAccessStream, IDisposable, IInputStream, IOutputStream, IContentTypeProvider | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using Uno; | ||
|
||
namespace Windows.Storage.Streams | ||
{ | ||
[Flags] | ||
public enum InputStreamOptions : uint | ||
{ | ||
None = 0, | ||
|
||
[NotImplemented] | ||
Partial = 1, | ||
|
||
[NotImplemented] | ||
ReadAhead = 2, | ||
} | ||
} |