winrt-Windows.Storage.Streams 3.1.0__tar.gz → 3.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/PKG-INFO +6 -6
- winrt_windows_storage_streams-3.2.0/all-requirements.txt +6 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/py.Windows.Storage.Streams.cpp +107 -7
- winrt_windows_storage_streams-3.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/requirements.txt +2 -2
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/setup.py +2 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/winrt/_winrt_windows_storage_streams.pyi +27 -29
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/winrt/windows/storage/streams/__init__.py +1 -1
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/winrt_Windows.Storage.Streams.egg-info/PKG-INFO +6 -6
- winrt_windows_storage_streams-3.2.0/winrt_Windows.Storage.Streams.egg-info/requires.txt +7 -0
- winrt_windows_storage_streams-3.1.0/all-requirements.txt +0 -6
- winrt_windows_storage_streams-3.1.0/pywinrt-version.txt +0 -1
- winrt_windows_storage_streams-3.1.0/winrt_Windows.Storage.Streams.egg-info/requires.txt +0 -7
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/README.md +0 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/pyproject.toml +0 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/setup.cfg +0 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/winrt/windows/storage/streams/py.typed +0 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/winrt_Windows.Storage.Streams.egg-info/SOURCES.txt +0 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/winrt_Windows.Storage.Streams.egg-info/dependency_links.txt +0 -0
- {winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/winrt_Windows.Storage.Streams.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.Storage.Streams
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,12 +12,12 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.
|
|
15
|
+
Requires-Dist: winrt-runtime==3.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==3.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage[all]==3.
|
|
20
|
-
Requires-Dist: winrt-Windows.System[all]==3.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage[all]==3.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.System[all]==3.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Storage.Streams.h"
|
|
4
4
|
|
|
@@ -1883,15 +1883,65 @@ namespace py::cpp::Windows::Storage::Streams
|
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
|
|
1886
|
-
static PyObject*
|
|
1886
|
+
static PyObject* get_DataReaderLoadOperation(py::wrapper::Windows::Storage::Streams::DataReaderLoadOperation* self, PyObject* /*unused*/) noexcept
|
|
1887
1887
|
{
|
|
1888
|
-
|
|
1888
|
+
if (winrt::impl::is_sta_thread())
|
|
1889
|
+
{
|
|
1890
|
+
PyErr_SetString(PyExc_RuntimeError, "Cannot call blocking method from single-threaded apartment.");
|
|
1891
|
+
return nullptr;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
try
|
|
1895
|
+
{
|
|
1896
|
+
return py::convert([&]()
|
|
1897
|
+
{
|
|
1898
|
+
auto _gil = py::release_gil();
|
|
1899
|
+
return self->obj.get();
|
|
1900
|
+
}());
|
|
1901
|
+
}
|
|
1902
|
+
catch (...)
|
|
1903
|
+
{
|
|
1904
|
+
py::to_PyErr();
|
|
1905
|
+
return nullptr;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
static PyObject* wait_DataReaderLoadOperation(py::wrapper::Windows::Storage::Streams::DataReaderLoadOperation* self, PyObject* arg) noexcept
|
|
1910
|
+
{
|
|
1911
|
+
if (winrt::impl::is_sta_thread())
|
|
1912
|
+
{
|
|
1913
|
+
PyErr_SetString(PyExc_RuntimeError, "Cannot call blocking method from single-threaded apartment.");
|
|
1914
|
+
return nullptr;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
auto timeout = PyFloat_AsDouble(arg);
|
|
1918
|
+
if (timeout == -1.0 && PyErr_Occurred())
|
|
1919
|
+
{
|
|
1920
|
+
return nullptr;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
try
|
|
1924
|
+
{
|
|
1925
|
+
return py::convert([&]()
|
|
1926
|
+
{
|
|
1927
|
+
auto _gil = py::release_gil();
|
|
1928
|
+
auto duration = std::chrono::duration_cast<winrt::Windows::Foundation::TimeSpan>(std::chrono::duration<double>(timeout));
|
|
1929
|
+
return self->obj.wait_for(duration);
|
|
1930
|
+
}());
|
|
1931
|
+
}
|
|
1932
|
+
catch (...)
|
|
1933
|
+
{
|
|
1934
|
+
py::to_PyErr();
|
|
1935
|
+
return nullptr;
|
|
1936
|
+
}
|
|
1889
1937
|
}
|
|
1890
1938
|
|
|
1891
1939
|
static PyMethodDef _methods_DataReaderLoadOperation[] = {
|
|
1892
1940
|
{ "cancel", reinterpret_cast<PyCFunction>(DataReaderLoadOperation_Cancel), METH_VARARGS, nullptr },
|
|
1893
1941
|
{ "close", reinterpret_cast<PyCFunction>(DataReaderLoadOperation_Close), METH_VARARGS, nullptr },
|
|
1894
1942
|
{ "get_results", reinterpret_cast<PyCFunction>(DataReaderLoadOperation_GetResults), METH_VARARGS, nullptr },
|
|
1943
|
+
{ "get", reinterpret_cast<PyCFunction>(get_DataReaderLoadOperation), METH_NOARGS, nullptr },
|
|
1944
|
+
{ "wait", reinterpret_cast<PyCFunction>(wait_DataReaderLoadOperation), METH_O, nullptr },
|
|
1895
1945
|
{ "_assign_array_", _assign_array_DataReaderLoadOperation, METH_O | METH_STATIC, nullptr },
|
|
1896
1946
|
{ "_from", reinterpret_cast<PyCFunction>(_from_DataReaderLoadOperation), METH_O | METH_STATIC, nullptr },
|
|
1897
1947
|
{ }};
|
|
@@ -1908,7 +1958,7 @@ namespace py::cpp::Windows::Storage::Streams
|
|
|
1908
1958
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DataReaderLoadOperation) },
|
|
1909
1959
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DataReaderLoadOperation) },
|
|
1910
1960
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DataReaderLoadOperation) },
|
|
1911
|
-
{ Py_am_await, reinterpret_cast<void*>(
|
|
1961
|
+
{ Py_am_await, reinterpret_cast<void*>(py::await_async) },
|
|
1912
1962
|
{ }};
|
|
1913
1963
|
|
|
1914
1964
|
static PyType_Spec type_spec_DataReaderLoadOperation = {
|
|
@@ -3534,15 +3584,65 @@ namespace py::cpp::Windows::Storage::Streams
|
|
|
3534
3584
|
}
|
|
3535
3585
|
}
|
|
3536
3586
|
|
|
3537
|
-
static PyObject*
|
|
3587
|
+
static PyObject* get_DataWriterStoreOperation(py::wrapper::Windows::Storage::Streams::DataWriterStoreOperation* self, PyObject* /*unused*/) noexcept
|
|
3538
3588
|
{
|
|
3539
|
-
|
|
3589
|
+
if (winrt::impl::is_sta_thread())
|
|
3590
|
+
{
|
|
3591
|
+
PyErr_SetString(PyExc_RuntimeError, "Cannot call blocking method from single-threaded apartment.");
|
|
3592
|
+
return nullptr;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
try
|
|
3596
|
+
{
|
|
3597
|
+
return py::convert([&]()
|
|
3598
|
+
{
|
|
3599
|
+
auto _gil = py::release_gil();
|
|
3600
|
+
return self->obj.get();
|
|
3601
|
+
}());
|
|
3602
|
+
}
|
|
3603
|
+
catch (...)
|
|
3604
|
+
{
|
|
3605
|
+
py::to_PyErr();
|
|
3606
|
+
return nullptr;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
static PyObject* wait_DataWriterStoreOperation(py::wrapper::Windows::Storage::Streams::DataWriterStoreOperation* self, PyObject* arg) noexcept
|
|
3611
|
+
{
|
|
3612
|
+
if (winrt::impl::is_sta_thread())
|
|
3613
|
+
{
|
|
3614
|
+
PyErr_SetString(PyExc_RuntimeError, "Cannot call blocking method from single-threaded apartment.");
|
|
3615
|
+
return nullptr;
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3618
|
+
auto timeout = PyFloat_AsDouble(arg);
|
|
3619
|
+
if (timeout == -1.0 && PyErr_Occurred())
|
|
3620
|
+
{
|
|
3621
|
+
return nullptr;
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
try
|
|
3625
|
+
{
|
|
3626
|
+
return py::convert([&]()
|
|
3627
|
+
{
|
|
3628
|
+
auto _gil = py::release_gil();
|
|
3629
|
+
auto duration = std::chrono::duration_cast<winrt::Windows::Foundation::TimeSpan>(std::chrono::duration<double>(timeout));
|
|
3630
|
+
return self->obj.wait_for(duration);
|
|
3631
|
+
}());
|
|
3632
|
+
}
|
|
3633
|
+
catch (...)
|
|
3634
|
+
{
|
|
3635
|
+
py::to_PyErr();
|
|
3636
|
+
return nullptr;
|
|
3637
|
+
}
|
|
3540
3638
|
}
|
|
3541
3639
|
|
|
3542
3640
|
static PyMethodDef _methods_DataWriterStoreOperation[] = {
|
|
3543
3641
|
{ "cancel", reinterpret_cast<PyCFunction>(DataWriterStoreOperation_Cancel), METH_VARARGS, nullptr },
|
|
3544
3642
|
{ "close", reinterpret_cast<PyCFunction>(DataWriterStoreOperation_Close), METH_VARARGS, nullptr },
|
|
3545
3643
|
{ "get_results", reinterpret_cast<PyCFunction>(DataWriterStoreOperation_GetResults), METH_VARARGS, nullptr },
|
|
3644
|
+
{ "get", reinterpret_cast<PyCFunction>(get_DataWriterStoreOperation), METH_NOARGS, nullptr },
|
|
3645
|
+
{ "wait", reinterpret_cast<PyCFunction>(wait_DataWriterStoreOperation), METH_O, nullptr },
|
|
3546
3646
|
{ "_assign_array_", _assign_array_DataWriterStoreOperation, METH_O | METH_STATIC, nullptr },
|
|
3547
3647
|
{ "_from", reinterpret_cast<PyCFunction>(_from_DataWriterStoreOperation), METH_O | METH_STATIC, nullptr },
|
|
3548
3648
|
{ }};
|
|
@@ -3559,7 +3659,7 @@ namespace py::cpp::Windows::Storage::Streams
|
|
|
3559
3659
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DataWriterStoreOperation) },
|
|
3560
3660
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DataWriterStoreOperation) },
|
|
3561
3661
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DataWriterStoreOperation) },
|
|
3562
|
-
{ Py_am_await, reinterpret_cast<void*>(
|
|
3662
|
+
{ Py_am_await, reinterpret_cast<void*>(py::await_async) },
|
|
3563
3663
|
{ }};
|
|
3564
3664
|
|
|
3565
3665
|
static PyType_Spec type_spec_DataWriterStoreOperation = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.2.0
|
{winrt_windows_storage_streams-3.1.0 → winrt_windows_storage_streams-3.2.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==3.
|
|
3
|
+
winrt-runtime==3.2.0
|
|
@@ -11,6 +11,8 @@ class build_ext_ex(build_ext):
|
|
|
11
11
|
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
12
|
elif self.compiler.compiler_type == "mingw32":
|
|
13
13
|
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
# GCC 15 complains about some things that it didn't in the past
|
|
15
|
+
ext.extra_compile_args += ["-Wno-strict-aliasing", "-Wno-template-body"]
|
|
14
16
|
ext.extra_link_args = ["-loleaut32"]
|
|
15
17
|
else:
|
|
16
18
|
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -24,7 +24,7 @@ class Buffer_Static(winrt._winrt.IInspectable_Static):
|
|
|
24
24
|
# Windows.Storage.Streams.Buffer Windows.Storage.Streams.Buffer::CreateCopyFromMemoryBuffer(Windows.Foundation.IMemoryBuffer)
|
|
25
25
|
def create_copy_from_memory_buffer(cls, input: windows_foundation.IMemoryBuffer, /) -> Buffer: ...
|
|
26
26
|
# Windows.Foundation.MemoryBuffer Windows.Storage.Streams.Buffer::CreateMemoryBufferOverIBuffer(Windows.Storage.Streams.IBuffer)
|
|
27
|
-
def create_memory_buffer_over_ibuffer(cls, input:
|
|
27
|
+
def create_memory_buffer_over_ibuffer(cls, input: winrt.system.Buffer, /) -> windows_foundation.MemoryBuffer: ...
|
|
28
28
|
|
|
29
29
|
@typing.final
|
|
30
30
|
class Buffer(winrt.system.Object, IBuffer, metaclass=Buffer_Static):
|
|
@@ -44,7 +44,7 @@ class Buffer(winrt.system.Object, IBuffer, metaclass=Buffer_Static):
|
|
|
44
44
|
@typing.final
|
|
45
45
|
class DataReader_Static(winrt._winrt.IInspectable_Static):
|
|
46
46
|
# Windows.Storage.Streams.DataReader Windows.Storage.Streams.DataReader::FromBuffer(Windows.Storage.Streams.IBuffer)
|
|
47
|
-
def from_buffer(cls, buffer:
|
|
47
|
+
def from_buffer(cls, buffer: winrt.system.Buffer, /) -> DataReader: ...
|
|
48
48
|
|
|
49
49
|
@typing.final
|
|
50
50
|
class DataReader(winrt.system.Object, windows_foundation.IClosable, IDataReader, metaclass=DataReader_Static):
|
|
@@ -54,7 +54,7 @@ class DataReader(winrt.system.Object, windows_foundation.IClosable, IDataReader,
|
|
|
54
54
|
# System.Void Windows.Storage.Streams.DataReader::Close()
|
|
55
55
|
def close(self) -> None: ...
|
|
56
56
|
# Windows.Storage.Streams.IBuffer Windows.Storage.Streams.DataReader::DetachBuffer()
|
|
57
|
-
def detach_buffer(self) ->
|
|
57
|
+
def detach_buffer(self) -> winrt.system.Buffer: ...
|
|
58
58
|
# Windows.Storage.Streams.IInputStream Windows.Storage.Streams.DataReader::DetachStream()
|
|
59
59
|
def detach_stream(self) -> IInputStream: ...
|
|
60
60
|
# Windows.Storage.Streams.DataReaderLoadOperation Windows.Storage.Streams.DataReader::LoadAsync(System.UInt32)
|
|
@@ -62,7 +62,7 @@ class DataReader(winrt.system.Object, windows_foundation.IClosable, IDataReader,
|
|
|
62
62
|
# System.Boolean Windows.Storage.Streams.DataReader::ReadBoolean()
|
|
63
63
|
def read_boolean(self) -> bool: ...
|
|
64
64
|
# Windows.Storage.Streams.IBuffer Windows.Storage.Streams.DataReader::ReadBuffer(System.UInt32)
|
|
65
|
-
def read_buffer(self, length: winrt.system.UInt32, /) ->
|
|
65
|
+
def read_buffer(self, length: winrt.system.UInt32, /) -> winrt.system.Buffer: ...
|
|
66
66
|
# System.Byte Windows.Storage.Streams.DataReader::ReadByte()
|
|
67
67
|
def read_byte(self) -> winrt.system.UInt8: ...
|
|
68
68
|
# System.Void Windows.Storage.Streams.DataReader::ReadBytes(System.Byte[])
|
|
@@ -115,7 +115,6 @@ class DataReader(winrt.system.Object, windows_foundation.IClosable, IDataReader,
|
|
|
115
115
|
|
|
116
116
|
@typing.final
|
|
117
117
|
class DataReaderLoadOperation(winrt.system.Object, windows_foundation.IAsyncOperation[winrt.system.UInt32], windows_foundation.IAsyncInfo):
|
|
118
|
-
def __await__(self) -> typing.Generator[typing.Any, None, winrt.system.UInt32]: ...
|
|
119
118
|
# System.Void Windows.Storage.Streams.DataReaderLoadOperation::Cancel()
|
|
120
119
|
def cancel(self) -> None: ...
|
|
121
120
|
# System.Void Windows.Storage.Streams.DataReaderLoadOperation::Close()
|
|
@@ -149,7 +148,7 @@ class DataWriter(winrt.system.Object, windows_foundation.IClosable, IDataWriter)
|
|
|
149
148
|
# System.Void Windows.Storage.Streams.DataWriter::Close()
|
|
150
149
|
def close(self) -> None: ...
|
|
151
150
|
# Windows.Storage.Streams.IBuffer Windows.Storage.Streams.DataWriter::DetachBuffer()
|
|
152
|
-
def detach_buffer(self) ->
|
|
151
|
+
def detach_buffer(self) -> winrt.system.Buffer: ...
|
|
153
152
|
# Windows.Storage.Streams.IOutputStream Windows.Storage.Streams.DataWriter::DetachStream()
|
|
154
153
|
def detach_stream(self) -> IOutputStream: ...
|
|
155
154
|
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.Storage.Streams.DataWriter::FlushAsync()
|
|
@@ -161,9 +160,9 @@ class DataWriter(winrt.system.Object, windows_foundation.IClosable, IDataWriter)
|
|
|
161
160
|
# System.Void Windows.Storage.Streams.DataWriter::WriteBoolean(System.Boolean)
|
|
162
161
|
def write_boolean(self, value: bool, /) -> None: ...
|
|
163
162
|
# System.Void Windows.Storage.Streams.DataWriter::WriteBuffer(Windows.Storage.Streams.IBuffer)
|
|
164
|
-
def write_buffer(self, buffer:
|
|
163
|
+
def write_buffer(self, buffer: winrt.system.Buffer, /) -> None: ...
|
|
165
164
|
# System.Void Windows.Storage.Streams.DataWriter::WriteBuffer(Windows.Storage.Streams.IBuffer,System.UInt32,System.UInt32)
|
|
166
|
-
def write_buffer_range(self, buffer:
|
|
165
|
+
def write_buffer_range(self, buffer: winrt.system.Buffer, start: winrt.system.UInt32, count: winrt.system.UInt32, /) -> None: ...
|
|
167
166
|
# System.Void Windows.Storage.Streams.DataWriter::WriteByte(System.Byte)
|
|
168
167
|
def write_byte(self, value: winrt.system.UInt8, /) -> None: ...
|
|
169
168
|
# System.Void Windows.Storage.Streams.DataWriter::WriteBytes(System.Byte[])
|
|
@@ -210,7 +209,6 @@ class DataWriter(winrt.system.Object, windows_foundation.IClosable, IDataWriter)
|
|
|
210
209
|
|
|
211
210
|
@typing.final
|
|
212
211
|
class DataWriterStoreOperation(winrt.system.Object, windows_foundation.IAsyncOperation[winrt.system.UInt32], windows_foundation.IAsyncInfo):
|
|
213
|
-
def __await__(self) -> typing.Generator[typing.Any, None, winrt.system.UInt32]: ...
|
|
214
212
|
# System.Void Windows.Storage.Streams.DataWriterStoreOperation::Cancel()
|
|
215
213
|
def cancel(self) -> None: ...
|
|
216
214
|
# System.Void Windows.Storage.Streams.DataWriterStoreOperation::Close()
|
|
@@ -240,7 +238,7 @@ class FileInputStream(winrt.system.Object, IInputStream, windows_foundation.IClo
|
|
|
240
238
|
# System.Void Windows.Storage.Streams.FileInputStream::Close()
|
|
241
239
|
def close(self) -> None: ...
|
|
242
240
|
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Storage.Streams.IBuffer,System.UInt32> Windows.Storage.Streams.FileInputStream::ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
|
|
243
|
-
def read_async(self, buffer:
|
|
241
|
+
def read_async(self, buffer: winrt.system.Buffer, count: winrt.system.UInt32, options: InputStreamOptions, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.Buffer, winrt.system.UInt32]: ...
|
|
244
242
|
|
|
245
243
|
@typing.final
|
|
246
244
|
class FileOutputStream(winrt.system.Object, IOutputStream, windows_foundation.IClosable):
|
|
@@ -251,7 +249,7 @@ class FileOutputStream(winrt.system.Object, IOutputStream, windows_foundation.IC
|
|
|
251
249
|
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.Storage.Streams.FileOutputStream::FlushAsync()
|
|
252
250
|
def flush_async(self) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
253
251
|
# Windows.Foundation.IAsyncOperationWithProgress`2<System.UInt32,System.UInt32> Windows.Storage.Streams.FileOutputStream::WriteAsync(Windows.Storage.Streams.IBuffer)
|
|
254
|
-
def write_async(self, buffer:
|
|
252
|
+
def write_async(self, buffer: winrt.system.Buffer, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
255
253
|
|
|
256
254
|
@typing.final
|
|
257
255
|
class FileRandomAccessStream_Static(winrt._winrt.IInspectable_Static):
|
|
@@ -287,11 +285,11 @@ class FileRandomAccessStream(winrt.system.Object, IRandomAccessStream, IOutputSt
|
|
|
287
285
|
# Windows.Storage.Streams.IOutputStream Windows.Storage.Streams.FileRandomAccessStream::GetOutputStreamAt(System.UInt64)
|
|
288
286
|
def get_output_stream_at(self, position: winrt.system.UInt64, /) -> IOutputStream: ...
|
|
289
287
|
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Storage.Streams.IBuffer,System.UInt32> Windows.Storage.Streams.FileRandomAccessStream::ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
|
|
290
|
-
def read_async(self, buffer:
|
|
288
|
+
def read_async(self, buffer: winrt.system.Buffer, count: winrt.system.UInt32, options: InputStreamOptions, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.Buffer, winrt.system.UInt32]: ...
|
|
291
289
|
# System.Void Windows.Storage.Streams.FileRandomAccessStream::Seek(System.UInt64)
|
|
292
290
|
def seek(self, position: winrt.system.UInt64, /) -> None: ...
|
|
293
291
|
# Windows.Foundation.IAsyncOperationWithProgress`2<System.UInt32,System.UInt32> Windows.Storage.Streams.FileRandomAccessStream::WriteAsync(Windows.Storage.Streams.IBuffer)
|
|
294
|
-
def write_async(self, buffer:
|
|
292
|
+
def write_async(self, buffer: winrt.system.Buffer, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
295
293
|
# System.UInt64 Windows.Storage.Streams.FileRandomAccessStream::get_Size()
|
|
296
294
|
@_property
|
|
297
295
|
def size(self) -> winrt.system.UInt64: ...
|
|
@@ -324,11 +322,11 @@ class InMemoryRandomAccessStream(winrt.system.Object, IRandomAccessStream, IOutp
|
|
|
324
322
|
# Windows.Storage.Streams.IOutputStream Windows.Storage.Streams.InMemoryRandomAccessStream::GetOutputStreamAt(System.UInt64)
|
|
325
323
|
def get_output_stream_at(self, position: winrt.system.UInt64, /) -> IOutputStream: ...
|
|
326
324
|
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Storage.Streams.IBuffer,System.UInt32> Windows.Storage.Streams.InMemoryRandomAccessStream::ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
|
|
327
|
-
def read_async(self, buffer:
|
|
325
|
+
def read_async(self, buffer: winrt.system.Buffer, count: winrt.system.UInt32, options: InputStreamOptions, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.Buffer, winrt.system.UInt32]: ...
|
|
328
326
|
# System.Void Windows.Storage.Streams.InMemoryRandomAccessStream::Seek(System.UInt64)
|
|
329
327
|
def seek(self, position: winrt.system.UInt64, /) -> None: ...
|
|
330
328
|
# Windows.Foundation.IAsyncOperationWithProgress`2<System.UInt32,System.UInt32> Windows.Storage.Streams.InMemoryRandomAccessStream::WriteAsync(Windows.Storage.Streams.IBuffer)
|
|
331
|
-
def write_async(self, buffer:
|
|
329
|
+
def write_async(self, buffer: winrt.system.Buffer, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
332
330
|
# System.UInt64 Windows.Storage.Streams.InMemoryRandomAccessStream::get_Size()
|
|
333
331
|
@_property
|
|
334
332
|
def size(self) -> winrt.system.UInt64: ...
|
|
@@ -352,7 +350,7 @@ class InputStreamOverStream(winrt.system.Object, IInputStream, windows_foundatio
|
|
|
352
350
|
# System.Void Windows.Storage.Streams.InputStreamOverStream::Close()
|
|
353
351
|
def close(self) -> None: ...
|
|
354
352
|
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Storage.Streams.IBuffer,System.UInt32> Windows.Storage.Streams.InputStreamOverStream::ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
|
|
355
|
-
def read_async(self, buffer:
|
|
353
|
+
def read_async(self, buffer: winrt.system.Buffer, count: winrt.system.UInt32, options: InputStreamOptions, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.Buffer, winrt.system.UInt32]: ...
|
|
356
354
|
|
|
357
355
|
@typing.final
|
|
358
356
|
class OutputStreamOverStream(winrt.system.Object, IOutputStream, windows_foundation.IClosable):
|
|
@@ -363,7 +361,7 @@ class OutputStreamOverStream(winrt.system.Object, IOutputStream, windows_foundat
|
|
|
363
361
|
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.Storage.Streams.OutputStreamOverStream::FlushAsync()
|
|
364
362
|
def flush_async(self) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
365
363
|
# Windows.Foundation.IAsyncOperationWithProgress`2<System.UInt32,System.UInt32> Windows.Storage.Streams.OutputStreamOverStream::WriteAsync(Windows.Storage.Streams.IBuffer)
|
|
366
|
-
def write_async(self, buffer:
|
|
364
|
+
def write_async(self, buffer: winrt.system.Buffer, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
367
365
|
|
|
368
366
|
@typing.final
|
|
369
367
|
class RandomAccessStream_Static(winrt._winrt.IInspectable_Static):
|
|
@@ -393,11 +391,11 @@ class RandomAccessStreamOverStream(winrt.system.Object, IRandomAccessStream, IOu
|
|
|
393
391
|
# Windows.Storage.Streams.IOutputStream Windows.Storage.Streams.RandomAccessStreamOverStream::GetOutputStreamAt(System.UInt64)
|
|
394
392
|
def get_output_stream_at(self, position: winrt.system.UInt64, /) -> IOutputStream: ...
|
|
395
393
|
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Storage.Streams.IBuffer,System.UInt32> Windows.Storage.Streams.RandomAccessStreamOverStream::ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
|
|
396
|
-
def read_async(self, buffer:
|
|
394
|
+
def read_async(self, buffer: winrt.system.Buffer, count: winrt.system.UInt32, options: InputStreamOptions, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.Buffer, winrt.system.UInt32]: ...
|
|
397
395
|
# System.Void Windows.Storage.Streams.RandomAccessStreamOverStream::Seek(System.UInt64)
|
|
398
396
|
def seek(self, position: winrt.system.UInt64, /) -> None: ...
|
|
399
397
|
# Windows.Foundation.IAsyncOperationWithProgress`2<System.UInt32,System.UInt32> Windows.Storage.Streams.RandomAccessStreamOverStream::WriteAsync(Windows.Storage.Streams.IBuffer)
|
|
400
|
-
def write_async(self, buffer:
|
|
398
|
+
def write_async(self, buffer: winrt.system.Buffer, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
401
399
|
# System.UInt64 Windows.Storage.Streams.RandomAccessStreamOverStream::get_Size()
|
|
402
400
|
@_property
|
|
403
401
|
def size(self) -> winrt.system.UInt64: ...
|
|
@@ -462,7 +460,7 @@ class _IDataReader: ...
|
|
|
462
460
|
class IDataReader(winrt._winrt.IInspectable):
|
|
463
461
|
# Windows.Storage.Streams.IBuffer Windows.Storage.Streams.IDataReader::DetachBuffer()
|
|
464
462
|
@abstractmethod
|
|
465
|
-
def detach_buffer(self) ->
|
|
463
|
+
def detach_buffer(self) -> winrt.system.Buffer: ...
|
|
466
464
|
# Windows.Storage.Streams.IInputStream Windows.Storage.Streams.IDataReader::DetachStream()
|
|
467
465
|
@abstractmethod
|
|
468
466
|
def detach_stream(self) -> IInputStream: ...
|
|
@@ -474,7 +472,7 @@ class IDataReader(winrt._winrt.IInspectable):
|
|
|
474
472
|
def read_boolean(self) -> bool: ...
|
|
475
473
|
# Windows.Storage.Streams.IBuffer Windows.Storage.Streams.IDataReader::ReadBuffer(System.UInt32)
|
|
476
474
|
@abstractmethod
|
|
477
|
-
def read_buffer(self, length: winrt.system.UInt32, /) ->
|
|
475
|
+
def read_buffer(self, length: winrt.system.UInt32, /) -> winrt.system.Buffer: ...
|
|
478
476
|
# System.Byte Windows.Storage.Streams.IDataReader::ReadByte()
|
|
479
477
|
@abstractmethod
|
|
480
478
|
def read_byte(self) -> winrt.system.UInt8: ...
|
|
@@ -552,7 +550,7 @@ class _IDataWriter: ...
|
|
|
552
550
|
class IDataWriter(winrt._winrt.IInspectable):
|
|
553
551
|
# Windows.Storage.Streams.IBuffer Windows.Storage.Streams.IDataWriter::DetachBuffer()
|
|
554
552
|
@abstractmethod
|
|
555
|
-
def detach_buffer(self) ->
|
|
553
|
+
def detach_buffer(self) -> winrt.system.Buffer: ...
|
|
556
554
|
# Windows.Storage.Streams.IOutputStream Windows.Storage.Streams.IDataWriter::DetachStream()
|
|
557
555
|
@abstractmethod
|
|
558
556
|
def detach_stream(self) -> IOutputStream: ...
|
|
@@ -570,10 +568,10 @@ class IDataWriter(winrt._winrt.IInspectable):
|
|
|
570
568
|
def write_boolean(self, value: bool, /) -> None: ...
|
|
571
569
|
# System.Void Windows.Storage.Streams.IDataWriter::WriteBuffer(Windows.Storage.Streams.IBuffer)
|
|
572
570
|
@abstractmethod
|
|
573
|
-
def write_buffer(self, buffer:
|
|
571
|
+
def write_buffer(self, buffer: winrt.system.Buffer, /) -> None: ...
|
|
574
572
|
# System.Void Windows.Storage.Streams.IDataWriter::WriteBuffer(Windows.Storage.Streams.IBuffer,System.UInt32,System.UInt32)
|
|
575
573
|
@abstractmethod
|
|
576
|
-
def write_buffer_range(self, buffer:
|
|
574
|
+
def write_buffer_range(self, buffer: winrt.system.Buffer, start: winrt.system.UInt32, count: winrt.system.UInt32, /) -> None: ...
|
|
577
575
|
# System.Void Windows.Storage.Streams.IDataWriter::WriteByte(System.Byte)
|
|
578
576
|
@abstractmethod
|
|
579
577
|
def write_byte(self, value: winrt.system.UInt8, /) -> None: ...
|
|
@@ -643,7 +641,7 @@ class _IInputStream: ...
|
|
|
643
641
|
class IInputStream(windows_foundation.IClosable, winrt._winrt.IInspectable):
|
|
644
642
|
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Storage.Streams.IBuffer,System.UInt32> Windows.Storage.Streams.IInputStream::ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
|
|
645
643
|
@abstractmethod
|
|
646
|
-
def read_async(self, buffer:
|
|
644
|
+
def read_async(self, buffer: winrt.system.Buffer, count: winrt.system.UInt32, options: InputStreamOptions, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.Buffer, winrt.system.UInt32]: ...
|
|
647
645
|
|
|
648
646
|
@typing.final
|
|
649
647
|
class _IInputStreamReference: ...
|
|
@@ -662,7 +660,7 @@ class IOutputStream(windows_foundation.IClosable, winrt._winrt.IInspectable):
|
|
|
662
660
|
def flush_async(self) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
663
661
|
# Windows.Foundation.IAsyncOperationWithProgress`2<System.UInt32,System.UInt32> Windows.Storage.Streams.IOutputStream::WriteAsync(Windows.Storage.Streams.IBuffer)
|
|
664
662
|
@abstractmethod
|
|
665
|
-
def write_async(self, buffer:
|
|
663
|
+
def write_async(self, buffer: winrt.system.Buffer, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
666
664
|
|
|
667
665
|
@typing.final
|
|
668
666
|
class _IPropertySetSerializer: ...
|
|
@@ -670,10 +668,10 @@ class _IPropertySetSerializer: ...
|
|
|
670
668
|
class IPropertySetSerializer(winrt._winrt.IInspectable):
|
|
671
669
|
# System.Void Windows.Storage.Streams.IPropertySetSerializer::Deserialize(Windows.Foundation.Collections.IPropertySet,Windows.Storage.Streams.IBuffer)
|
|
672
670
|
@abstractmethod
|
|
673
|
-
def deserialize(self, property_set: windows_foundation_collections.IPropertySet, buffer:
|
|
671
|
+
def deserialize(self, property_set: windows_foundation_collections.IPropertySet, buffer: winrt.system.Buffer, /) -> None: ...
|
|
674
672
|
# Windows.Storage.Streams.IBuffer Windows.Storage.Streams.IPropertySetSerializer::Serialize(Windows.Foundation.Collections.IPropertySet)
|
|
675
673
|
@abstractmethod
|
|
676
|
-
def serialize(self, property_set: windows_foundation_collections.IPropertySet, /) ->
|
|
674
|
+
def serialize(self, property_set: windows_foundation_collections.IPropertySet, /) -> winrt.system.Buffer: ...
|
|
677
675
|
|
|
678
676
|
@typing.final
|
|
679
677
|
class _IRandomAccessStream: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.Storage.Streams
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,12 +12,12 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.
|
|
15
|
+
Requires-Dist: winrt-runtime==3.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==3.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage[all]==3.
|
|
20
|
-
Requires-Dist: winrt-Windows.System[all]==3.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage[all]==3.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.System[all]==3.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|