winrt-Windows.Storage.Streams 2.0.0b1__cp312-cp312-win32.whl

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.
@@ -0,0 +1,484 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation
13
+ import winrt.windows.foundation.collections
14
+ import winrt.windows.storage
15
+ import winrt.windows.system
16
+
17
+ from winrt.windows.storage.streams import ByteOrder, FileOpenDisposition, InputStreamOptions, UnicodeEncoding
18
+
19
+ Self = typing.TypeVar('Self')
20
+
21
+ class Buffer_Static(type):
22
+ def create_copy_from_memory_buffer(cls, input: typing.Optional[winrt.windows.foundation.IMemoryBuffer], /) -> typing.Optional[Buffer]: ...
23
+ def create_memory_buffer_over_i_buffer(cls, input: typing.Optional[IBuffer], /) -> typing.Optional[winrt.windows.foundation.MemoryBuffer]: ...
24
+
25
+ class Buffer(winrt.system.Object, metaclass=Buffer_Static):
26
+ def __buffer__(self, flags: int) -> memoryview: ...
27
+ def __release_buffer__(self, view: memoryview) -> None: ...
28
+ @staticmethod
29
+ def _from(obj: winrt.system.Object, /) -> Buffer: ...
30
+ def __new__(cls: typing.Type[Buffer], capacity: winrt.system.UInt32) -> Buffer:...
31
+ @_property
32
+ def length(self) -> winrt.system.UInt32: ...
33
+ @length.setter
34
+ def length(self, value: winrt.system.UInt32) -> None: ...
35
+ @_property
36
+ def capacity(self) -> winrt.system.UInt32: ...
37
+
38
+ class DataReader_Static(type):
39
+ def from_buffer(cls, buffer: typing.Optional[IBuffer], /) -> typing.Optional[DataReader]: ...
40
+
41
+ class DataReader(winrt.system.Object, metaclass=DataReader_Static):
42
+ def __enter__(self: Self) -> Self: ...
43
+ def __exit__(self, *args) -> None: ...
44
+ @staticmethod
45
+ def _from(obj: winrt.system.Object, /) -> DataReader: ...
46
+ def __new__(cls: typing.Type[DataReader], input_stream: typing.Optional[IInputStream]) -> DataReader:...
47
+ def close(self) -> None: ...
48
+ def detach_buffer(self) -> typing.Optional[IBuffer]: ...
49
+ def detach_stream(self) -> typing.Optional[IInputStream]: ...
50
+ def load_async(self, count: winrt.system.UInt32, /) -> DataReaderLoadOperation: ...
51
+ def read_boolean(self) -> bool: ...
52
+ def read_buffer(self, length: winrt.system.UInt32, /) -> typing.Optional[IBuffer]: ...
53
+ def read_byte(self) -> winrt.system.UInt8: ...
54
+ def read_bytes(self, value: winrt.system.Array[winrt.system.UInt8], /) -> None: ...
55
+ def read_date_time(self) -> datetime.datetime: ...
56
+ def read_double(self) -> winrt.system.Double: ...
57
+ def read_guid(self) -> _uuid.UUID: ...
58
+ def read_int16(self) -> winrt.system.Int16: ...
59
+ def read_int32(self) -> winrt.system.Int32: ...
60
+ def read_int64(self) -> winrt.system.Int64: ...
61
+ def read_single(self) -> winrt.system.Single: ...
62
+ def read_string(self, code_unit_count: winrt.system.UInt32, /) -> str: ...
63
+ def read_time_span(self) -> datetime.timedelta: ...
64
+ def read_uint16(self) -> winrt.system.UInt16: ...
65
+ def read_uint32(self) -> winrt.system.UInt32: ...
66
+ def read_uint64(self) -> winrt.system.UInt64: ...
67
+ @_property
68
+ def unicode_encoding(self) -> UnicodeEncoding: ...
69
+ @unicode_encoding.setter
70
+ def unicode_encoding(self, value: UnicodeEncoding) -> None: ...
71
+ @_property
72
+ def input_stream_options(self) -> InputStreamOptions: ...
73
+ @input_stream_options.setter
74
+ def input_stream_options(self, value: InputStreamOptions) -> None: ...
75
+ @_property
76
+ def byte_order(self) -> ByteOrder: ...
77
+ @byte_order.setter
78
+ def byte_order(self, value: ByteOrder) -> None: ...
79
+ @_property
80
+ def unconsumed_buffer_length(self) -> winrt.system.UInt32: ...
81
+
82
+ class DataReaderLoadOperation(winrt.system.Object):
83
+ def __await__(self) -> typing.Generator[typing.Any, None, winrt.system.UInt32]: ...
84
+ @staticmethod
85
+ def _from(obj: winrt.system.Object, /) -> DataReaderLoadOperation: ...
86
+ def cancel(self) -> None: ...
87
+ def close(self) -> None: ...
88
+ def get_results(self) -> winrt.system.UInt32: ...
89
+ @_property
90
+ def error_code(self) -> winrt.windows.foundation.HResult: ...
91
+ @_property
92
+ def id(self) -> winrt.system.UInt32: ...
93
+ @_property
94
+ def status(self) -> winrt.windows.foundation.AsyncStatus: ...
95
+ @_property
96
+ def completed(self) -> typing.Optional[winrt.windows.foundation.AsyncOperationCompletedHandler[winrt.system.UInt32]]: ...
97
+ @completed.setter
98
+ def completed(self, value: typing.Optional[winrt.windows.foundation.AsyncOperationCompletedHandler[winrt.system.UInt32]]) -> None: ...
99
+
100
+ class DataWriter(winrt.system.Object):
101
+ def __enter__(self: Self) -> Self: ...
102
+ def __exit__(self, *args) -> None: ...
103
+ @staticmethod
104
+ def _from(obj: winrt.system.Object, /) -> DataWriter: ...
105
+ @typing.overload
106
+ def __new__(cls: typing.Type[DataWriter], output_stream: typing.Optional[IOutputStream]) -> DataWriter:...
107
+ @typing.overload
108
+ def __new__(cls: typing.Type[DataWriter]) -> DataWriter:...
109
+ def close(self) -> None: ...
110
+ def detach_buffer(self) -> typing.Optional[IBuffer]: ...
111
+ def detach_stream(self) -> typing.Optional[IOutputStream]: ...
112
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
113
+ def measure_string(self, value: str, /) -> winrt.system.UInt32: ...
114
+ def store_async(self) -> DataWriterStoreOperation: ...
115
+ def write_boolean(self, value: bool, /) -> None: ...
116
+ @typing.overload
117
+ def write_buffer(self, buffer: typing.Optional[IBuffer], /) -> None: ...
118
+ @typing.overload
119
+ def write_buffer(self, buffer: typing.Optional[IBuffer], start: winrt.system.UInt32, count: winrt.system.UInt32, /) -> None: ...
120
+ def write_byte(self, value: winrt.system.UInt8, /) -> None: ...
121
+ def write_bytes(self, value: winrt.system.Array[winrt.system.UInt8], /) -> None: ...
122
+ def write_date_time(self, value: datetime.datetime, /) -> None: ...
123
+ def write_double(self, value: winrt.system.Double, /) -> None: ...
124
+ def write_guid(self, value: _uuid.UUID, /) -> None: ...
125
+ def write_int16(self, value: winrt.system.Int16, /) -> None: ...
126
+ def write_int32(self, value: winrt.system.Int32, /) -> None: ...
127
+ def write_int64(self, value: winrt.system.Int64, /) -> None: ...
128
+ def write_single(self, value: winrt.system.Single, /) -> None: ...
129
+ def write_string(self, value: str, /) -> winrt.system.UInt32: ...
130
+ def write_time_span(self, value: datetime.timedelta, /) -> None: ...
131
+ def write_uint16(self, value: winrt.system.UInt16, /) -> None: ...
132
+ def write_uint32(self, value: winrt.system.UInt32, /) -> None: ...
133
+ def write_uint64(self, value: winrt.system.UInt64, /) -> None: ...
134
+ @_property
135
+ def unicode_encoding(self) -> UnicodeEncoding: ...
136
+ @unicode_encoding.setter
137
+ def unicode_encoding(self, value: UnicodeEncoding) -> None: ...
138
+ @_property
139
+ def byte_order(self) -> ByteOrder: ...
140
+ @byte_order.setter
141
+ def byte_order(self, value: ByteOrder) -> None: ...
142
+ @_property
143
+ def unstored_buffer_length(self) -> winrt.system.UInt32: ...
144
+
145
+ class DataWriterStoreOperation(winrt.system.Object):
146
+ def __await__(self) -> typing.Generator[typing.Any, None, winrt.system.UInt32]: ...
147
+ @staticmethod
148
+ def _from(obj: winrt.system.Object, /) -> DataWriterStoreOperation: ...
149
+ def cancel(self) -> None: ...
150
+ def close(self) -> None: ...
151
+ def get_results(self) -> winrt.system.UInt32: ...
152
+ @_property
153
+ def error_code(self) -> winrt.windows.foundation.HResult: ...
154
+ @_property
155
+ def id(self) -> winrt.system.UInt32: ...
156
+ @_property
157
+ def status(self) -> winrt.windows.foundation.AsyncStatus: ...
158
+ @_property
159
+ def completed(self) -> typing.Optional[winrt.windows.foundation.AsyncOperationCompletedHandler[winrt.system.UInt32]]: ...
160
+ @completed.setter
161
+ def completed(self, value: typing.Optional[winrt.windows.foundation.AsyncOperationCompletedHandler[winrt.system.UInt32]]) -> None: ...
162
+
163
+ class FileInputStream(winrt.system.Object):
164
+ def __enter__(self: Self) -> Self: ...
165
+ def __exit__(self, *args) -> None: ...
166
+ @staticmethod
167
+ def _from(obj: winrt.system.Object, /) -> FileInputStream: ...
168
+ def close(self) -> None: ...
169
+ def read_async(self, buffer: typing.Optional[IBuffer], count: winrt.system.UInt32, options: InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[IBuffer, winrt.system.UInt32]: ...
170
+
171
+ class FileOutputStream(winrt.system.Object):
172
+ def __enter__(self: Self) -> Self: ...
173
+ def __exit__(self, *args) -> None: ...
174
+ @staticmethod
175
+ def _from(obj: winrt.system.Object, /) -> FileOutputStream: ...
176
+ def close(self) -> None: ...
177
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
178
+ def write_async(self, buffer: typing.Optional[IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
179
+
180
+ class FileRandomAccessStream_Static(type):
181
+ @typing.overload
182
+ def open_async(cls, file_path: str, access_mode: winrt.windows.storage.FileAccessMode, /) -> winrt.windows.foundation.IAsyncOperation[IRandomAccessStream]: ...
183
+ @typing.overload
184
+ def open_async(cls, file_path: str, access_mode: winrt.windows.storage.FileAccessMode, sharing_options: winrt.windows.storage.StorageOpenOptions, open_disposition: FileOpenDisposition, /) -> winrt.windows.foundation.IAsyncOperation[IRandomAccessStream]: ...
185
+ @typing.overload
186
+ def open_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], file_path: str, access_mode: winrt.windows.storage.FileAccessMode, /) -> winrt.windows.foundation.IAsyncOperation[IRandomAccessStream]: ...
187
+ @typing.overload
188
+ def open_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], file_path: str, access_mode: winrt.windows.storage.FileAccessMode, sharing_options: winrt.windows.storage.StorageOpenOptions, open_disposition: FileOpenDisposition, /) -> winrt.windows.foundation.IAsyncOperation[IRandomAccessStream]: ...
189
+ @typing.overload
190
+ def open_transacted_write_async(cls, file_path: str, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.storage.StorageStreamTransaction]: ...
191
+ @typing.overload
192
+ def open_transacted_write_async(cls, file_path: str, open_options: winrt.windows.storage.StorageOpenOptions, open_disposition: FileOpenDisposition, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.storage.StorageStreamTransaction]: ...
193
+ @typing.overload
194
+ def open_transacted_write_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], file_path: str, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.storage.StorageStreamTransaction]: ...
195
+ @typing.overload
196
+ def open_transacted_write_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], file_path: str, open_options: winrt.windows.storage.StorageOpenOptions, open_disposition: FileOpenDisposition, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.storage.StorageStreamTransaction]: ...
197
+
198
+ class FileRandomAccessStream(winrt.system.Object, metaclass=FileRandomAccessStream_Static):
199
+ def __enter__(self: Self) -> Self: ...
200
+ def __exit__(self, *args) -> None: ...
201
+ @staticmethod
202
+ def _from(obj: winrt.system.Object, /) -> FileRandomAccessStream: ...
203
+ def clone_stream(self) -> typing.Optional[IRandomAccessStream]: ...
204
+ def close(self) -> None: ...
205
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
206
+ def get_input_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IInputStream]: ...
207
+ def get_output_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IOutputStream]: ...
208
+ def read_async(self, buffer: typing.Optional[IBuffer], count: winrt.system.UInt32, options: InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[IBuffer, winrt.system.UInt32]: ...
209
+ def seek(self, position: winrt.system.UInt64, /) -> None: ...
210
+ def write_async(self, buffer: typing.Optional[IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
211
+ @_property
212
+ def size(self) -> winrt.system.UInt64: ...
213
+ @size.setter
214
+ def size(self, value: winrt.system.UInt64) -> None: ...
215
+ @_property
216
+ def can_read(self) -> bool: ...
217
+ @_property
218
+ def can_write(self) -> bool: ...
219
+ @_property
220
+ def position(self) -> winrt.system.UInt64: ...
221
+
222
+ class InMemoryRandomAccessStream(winrt.system.Object):
223
+ def __enter__(self: Self) -> Self: ...
224
+ def __exit__(self, *args) -> None: ...
225
+ @staticmethod
226
+ def _from(obj: winrt.system.Object, /) -> InMemoryRandomAccessStream: ...
227
+ def __new__(cls: typing.Type[InMemoryRandomAccessStream]) -> InMemoryRandomAccessStream:...
228
+ def clone_stream(self) -> typing.Optional[IRandomAccessStream]: ...
229
+ def close(self) -> None: ...
230
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
231
+ def get_input_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IInputStream]: ...
232
+ def get_output_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IOutputStream]: ...
233
+ def read_async(self, buffer: typing.Optional[IBuffer], count: winrt.system.UInt32, options: InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[IBuffer, winrt.system.UInt32]: ...
234
+ def seek(self, position: winrt.system.UInt64, /) -> None: ...
235
+ def write_async(self, buffer: typing.Optional[IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
236
+ @_property
237
+ def size(self) -> winrt.system.UInt64: ...
238
+ @size.setter
239
+ def size(self, value: winrt.system.UInt64) -> None: ...
240
+ @_property
241
+ def can_read(self) -> bool: ...
242
+ @_property
243
+ def can_write(self) -> bool: ...
244
+ @_property
245
+ def position(self) -> winrt.system.UInt64: ...
246
+
247
+ class InputStreamOverStream(winrt.system.Object):
248
+ def __enter__(self: Self) -> Self: ...
249
+ def __exit__(self, *args) -> None: ...
250
+ @staticmethod
251
+ def _from(obj: winrt.system.Object, /) -> InputStreamOverStream: ...
252
+ def close(self) -> None: ...
253
+ def read_async(self, buffer: typing.Optional[IBuffer], count: winrt.system.UInt32, options: InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[IBuffer, winrt.system.UInt32]: ...
254
+
255
+ class OutputStreamOverStream(winrt.system.Object):
256
+ def __enter__(self: Self) -> Self: ...
257
+ def __exit__(self, *args) -> None: ...
258
+ @staticmethod
259
+ def _from(obj: winrt.system.Object, /) -> OutputStreamOverStream: ...
260
+ def close(self) -> None: ...
261
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
262
+ def write_async(self, buffer: typing.Optional[IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
263
+
264
+ class RandomAccessStream_Static(type):
265
+ def copy_and_close_async(cls, source: typing.Optional[IInputStream], destination: typing.Optional[IOutputStream], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
266
+ @typing.overload
267
+ def copy_async(cls, source: typing.Optional[IInputStream], destination: typing.Optional[IOutputStream], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
268
+ @typing.overload
269
+ def copy_async(cls, source: typing.Optional[IInputStream], destination: typing.Optional[IOutputStream], bytes_to_copy: winrt.system.UInt64, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
270
+
271
+ class RandomAccessStream(winrt.system.Object, metaclass=RandomAccessStream_Static):
272
+ @staticmethod
273
+ def _from(obj: winrt.system.Object, /) -> RandomAccessStream: ...
274
+
275
+ class RandomAccessStreamOverStream(winrt.system.Object):
276
+ def __enter__(self: Self) -> Self: ...
277
+ def __exit__(self, *args) -> None: ...
278
+ @staticmethod
279
+ def _from(obj: winrt.system.Object, /) -> RandomAccessStreamOverStream: ...
280
+ def clone_stream(self) -> typing.Optional[IRandomAccessStream]: ...
281
+ def close(self) -> None: ...
282
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
283
+ def get_input_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IInputStream]: ...
284
+ def get_output_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IOutputStream]: ...
285
+ def read_async(self, buffer: typing.Optional[IBuffer], count: winrt.system.UInt32, options: InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[IBuffer, winrt.system.UInt32]: ...
286
+ def seek(self, position: winrt.system.UInt64, /) -> None: ...
287
+ def write_async(self, buffer: typing.Optional[IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
288
+ @_property
289
+ def size(self) -> winrt.system.UInt64: ...
290
+ @size.setter
291
+ def size(self, value: winrt.system.UInt64) -> None: ...
292
+ @_property
293
+ def can_read(self) -> bool: ...
294
+ @_property
295
+ def can_write(self) -> bool: ...
296
+ @_property
297
+ def position(self) -> winrt.system.UInt64: ...
298
+
299
+ class RandomAccessStreamReference_Static(type):
300
+ def create_from_file(cls, file: typing.Optional[winrt.windows.storage.IStorageFile], /) -> typing.Optional[RandomAccessStreamReference]: ...
301
+ def create_from_stream(cls, stream: typing.Optional[IRandomAccessStream], /) -> typing.Optional[RandomAccessStreamReference]: ...
302
+ def create_from_uri(cls, uri: typing.Optional[winrt.windows.foundation.Uri], /) -> typing.Optional[RandomAccessStreamReference]: ...
303
+
304
+ class RandomAccessStreamReference(winrt.system.Object, metaclass=RandomAccessStreamReference_Static):
305
+ @staticmethod
306
+ def _from(obj: winrt.system.Object, /) -> RandomAccessStreamReference: ...
307
+ def open_read_async(self) -> winrt.windows.foundation.IAsyncOperation[IRandomAccessStreamWithContentType]: ...
308
+
309
+ class IBuffer(winrt.system.Object):
310
+ def __buffer__(self, flags: int) -> memoryview: ...
311
+ def __release_buffer__(self, view: memoryview) -> None: ...
312
+ @staticmethod
313
+ def _from(obj: winrt.system.Object, /) -> IBuffer: ...
314
+ @_property
315
+ def capacity(self) -> winrt.system.UInt32: ...
316
+ @_property
317
+ def length(self) -> winrt.system.UInt32: ...
318
+ @length.setter
319
+ def length(self, value: winrt.system.UInt32) -> None: ...
320
+
321
+ class IContentTypeProvider(winrt.system.Object):
322
+ @staticmethod
323
+ def _from(obj: winrt.system.Object, /) -> IContentTypeProvider: ...
324
+ @_property
325
+ def content_type(self) -> str: ...
326
+
327
+ class IDataReader(winrt.system.Object):
328
+ @staticmethod
329
+ def _from(obj: winrt.system.Object, /) -> IDataReader: ...
330
+ def detach_buffer(self) -> typing.Optional[IBuffer]: ...
331
+ def detach_stream(self) -> typing.Optional[IInputStream]: ...
332
+ def load_async(self, count: winrt.system.UInt32, /) -> DataReaderLoadOperation: ...
333
+ def read_boolean(self) -> bool: ...
334
+ def read_buffer(self, length: winrt.system.UInt32, /) -> typing.Optional[IBuffer]: ...
335
+ def read_byte(self) -> winrt.system.UInt8: ...
336
+ def read_bytes(self, value: winrt.system.Array[winrt.system.UInt8], /) -> None: ...
337
+ def read_date_time(self) -> datetime.datetime: ...
338
+ def read_double(self) -> winrt.system.Double: ...
339
+ def read_guid(self) -> _uuid.UUID: ...
340
+ def read_int16(self) -> winrt.system.Int16: ...
341
+ def read_int32(self) -> winrt.system.Int32: ...
342
+ def read_int64(self) -> winrt.system.Int64: ...
343
+ def read_single(self) -> winrt.system.Single: ...
344
+ def read_string(self, code_unit_count: winrt.system.UInt32, /) -> str: ...
345
+ def read_time_span(self) -> datetime.timedelta: ...
346
+ def read_uint16(self) -> winrt.system.UInt16: ...
347
+ def read_uint32(self) -> winrt.system.UInt32: ...
348
+ def read_uint64(self) -> winrt.system.UInt64: ...
349
+ @_property
350
+ def byte_order(self) -> ByteOrder: ...
351
+ @byte_order.setter
352
+ def byte_order(self, value: ByteOrder) -> None: ...
353
+ @_property
354
+ def input_stream_options(self) -> InputStreamOptions: ...
355
+ @input_stream_options.setter
356
+ def input_stream_options(self, value: InputStreamOptions) -> None: ...
357
+ @_property
358
+ def unconsumed_buffer_length(self) -> winrt.system.UInt32: ...
359
+ @_property
360
+ def unicode_encoding(self) -> UnicodeEncoding: ...
361
+ @unicode_encoding.setter
362
+ def unicode_encoding(self, value: UnicodeEncoding) -> None: ...
363
+
364
+ class IDataWriter(winrt.system.Object):
365
+ @staticmethod
366
+ def _from(obj: winrt.system.Object, /) -> IDataWriter: ...
367
+ def detach_buffer(self) -> typing.Optional[IBuffer]: ...
368
+ def detach_stream(self) -> typing.Optional[IOutputStream]: ...
369
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
370
+ def measure_string(self, value: str, /) -> winrt.system.UInt32: ...
371
+ def store_async(self) -> DataWriterStoreOperation: ...
372
+ def write_boolean(self, value: bool, /) -> None: ...
373
+ @typing.overload
374
+ def write_buffer(self, buffer: typing.Optional[IBuffer], /) -> None: ...
375
+ @typing.overload
376
+ def write_buffer(self, buffer: typing.Optional[IBuffer], start: winrt.system.UInt32, count: winrt.system.UInt32, /) -> None: ...
377
+ def write_byte(self, value: winrt.system.UInt8, /) -> None: ...
378
+ def write_bytes(self, value: winrt.system.Array[winrt.system.UInt8], /) -> None: ...
379
+ def write_date_time(self, value: datetime.datetime, /) -> None: ...
380
+ def write_double(self, value: winrt.system.Double, /) -> None: ...
381
+ def write_guid(self, value: _uuid.UUID, /) -> None: ...
382
+ def write_int16(self, value: winrt.system.Int16, /) -> None: ...
383
+ def write_int32(self, value: winrt.system.Int32, /) -> None: ...
384
+ def write_int64(self, value: winrt.system.Int64, /) -> None: ...
385
+ def write_single(self, value: winrt.system.Single, /) -> None: ...
386
+ def write_string(self, value: str, /) -> winrt.system.UInt32: ...
387
+ def write_time_span(self, value: datetime.timedelta, /) -> None: ...
388
+ def write_uint16(self, value: winrt.system.UInt16, /) -> None: ...
389
+ def write_uint32(self, value: winrt.system.UInt32, /) -> None: ...
390
+ def write_uint64(self, value: winrt.system.UInt64, /) -> None: ...
391
+ @_property
392
+ def byte_order(self) -> ByteOrder: ...
393
+ @byte_order.setter
394
+ def byte_order(self, value: ByteOrder) -> None: ...
395
+ @_property
396
+ def unicode_encoding(self) -> UnicodeEncoding: ...
397
+ @unicode_encoding.setter
398
+ def unicode_encoding(self, value: UnicodeEncoding) -> None: ...
399
+ @_property
400
+ def unstored_buffer_length(self) -> winrt.system.UInt32: ...
401
+
402
+ class IInputStream(winrt.system.Object):
403
+ def __enter__(self: Self) -> Self: ...
404
+ def __exit__(self, *args) -> None: ...
405
+ @staticmethod
406
+ def _from(obj: winrt.system.Object, /) -> IInputStream: ...
407
+ def close(self) -> None: ...
408
+ def read_async(self, buffer: typing.Optional[IBuffer], count: winrt.system.UInt32, options: InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[IBuffer, winrt.system.UInt32]: ...
409
+
410
+ class IInputStreamReference(winrt.system.Object):
411
+ @staticmethod
412
+ def _from(obj: winrt.system.Object, /) -> IInputStreamReference: ...
413
+ def open_sequential_read_async(self) -> winrt.windows.foundation.IAsyncOperation[IInputStream]: ...
414
+
415
+ class IOutputStream(winrt.system.Object):
416
+ def __enter__(self: Self) -> Self: ...
417
+ def __exit__(self, *args) -> None: ...
418
+ @staticmethod
419
+ def _from(obj: winrt.system.Object, /) -> IOutputStream: ...
420
+ def close(self) -> None: ...
421
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
422
+ def write_async(self, buffer: typing.Optional[IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
423
+
424
+ class IPropertySetSerializer(winrt.system.Object):
425
+ @staticmethod
426
+ def _from(obj: winrt.system.Object, /) -> IPropertySetSerializer: ...
427
+ def deserialize(self, property_set: typing.Optional[winrt.windows.foundation.collections.IPropertySet], buffer: typing.Optional[IBuffer], /) -> None: ...
428
+ def serialize(self, property_set: typing.Optional[winrt.windows.foundation.collections.IPropertySet], /) -> typing.Optional[IBuffer]: ...
429
+
430
+ class IRandomAccessStream(winrt.system.Object):
431
+ def __enter__(self: Self) -> Self: ...
432
+ def __exit__(self, *args) -> None: ...
433
+ @staticmethod
434
+ def _from(obj: winrt.system.Object, /) -> IRandomAccessStream: ...
435
+ def clone_stream(self) -> typing.Optional[IRandomAccessStream]: ...
436
+ def close(self) -> None: ...
437
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
438
+ def get_input_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IInputStream]: ...
439
+ def get_output_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IOutputStream]: ...
440
+ def read_async(self, buffer: typing.Optional[IBuffer], count: winrt.system.UInt32, options: InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[IBuffer, winrt.system.UInt32]: ...
441
+ def seek(self, position: winrt.system.UInt64, /) -> None: ...
442
+ def write_async(self, buffer: typing.Optional[IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
443
+ @_property
444
+ def can_read(self) -> bool: ...
445
+ @_property
446
+ def can_write(self) -> bool: ...
447
+ @_property
448
+ def position(self) -> winrt.system.UInt64: ...
449
+ @_property
450
+ def size(self) -> winrt.system.UInt64: ...
451
+ @size.setter
452
+ def size(self, value: winrt.system.UInt64) -> None: ...
453
+
454
+ class IRandomAccessStreamReference(winrt.system.Object):
455
+ @staticmethod
456
+ def _from(obj: winrt.system.Object, /) -> IRandomAccessStreamReference: ...
457
+ def open_read_async(self) -> winrt.windows.foundation.IAsyncOperation[IRandomAccessStreamWithContentType]: ...
458
+
459
+ class IRandomAccessStreamWithContentType(winrt.system.Object):
460
+ def __enter__(self: Self) -> Self: ...
461
+ def __exit__(self, *args) -> None: ...
462
+ @staticmethod
463
+ def _from(obj: winrt.system.Object, /) -> IRandomAccessStreamWithContentType: ...
464
+ def clone_stream(self) -> typing.Optional[IRandomAccessStream]: ...
465
+ def close(self) -> None: ...
466
+ def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
467
+ def get_input_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IInputStream]: ...
468
+ def get_output_stream_at(self, position: winrt.system.UInt64, /) -> typing.Optional[IOutputStream]: ...
469
+ def read_async(self, buffer: typing.Optional[IBuffer], count: winrt.system.UInt32, options: InputStreamOptions, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[IBuffer, winrt.system.UInt32]: ...
470
+ def seek(self, position: winrt.system.UInt64, /) -> None: ...
471
+ def write_async(self, buffer: typing.Optional[IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
472
+ @_property
473
+ def can_read(self) -> bool: ...
474
+ @_property
475
+ def can_write(self) -> bool: ...
476
+ @_property
477
+ def position(self) -> winrt.system.UInt64: ...
478
+ @_property
479
+ def size(self) -> winrt.system.UInt64: ...
480
+ @size.setter
481
+ def size(self, value: winrt.system.UInt64) -> None: ...
482
+ @_property
483
+ def content_type(self) -> str: ...
484
+
@@ -0,0 +1,85 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_storage_streams
7
+
8
+ __all__ = [
9
+ "ByteOrder",
10
+ "FileOpenDisposition",
11
+ "InputStreamOptions",
12
+ "UnicodeEncoding",
13
+ "Buffer",
14
+ "DataReader",
15
+ "DataReaderLoadOperation",
16
+ "DataWriter",
17
+ "DataWriterStoreOperation",
18
+ "FileInputStream",
19
+ "FileOutputStream",
20
+ "FileRandomAccessStream",
21
+ "InMemoryRandomAccessStream",
22
+ "InputStreamOverStream",
23
+ "OutputStreamOverStream",
24
+ "RandomAccessStream",
25
+ "RandomAccessStreamOverStream",
26
+ "RandomAccessStreamReference",
27
+ "IBuffer",
28
+ "IContentTypeProvider",
29
+ "IDataReader",
30
+ "IDataWriter",
31
+ "IInputStream",
32
+ "IInputStreamReference",
33
+ "IOutputStream",
34
+ "IPropertySetSerializer",
35
+ "IRandomAccessStream",
36
+ "IRandomAccessStreamReference",
37
+ "IRandomAccessStreamWithContentType",
38
+ ]
39
+
40
+ class ByteOrder(enum.IntEnum):
41
+ LITTLE_ENDIAN = 0
42
+ BIG_ENDIAN = 1
43
+
44
+ class FileOpenDisposition(enum.IntEnum):
45
+ OPEN_EXISTING = 0
46
+ OPEN_ALWAYS = 1
47
+ CREATE_NEW = 2
48
+ CREATE_ALWAYS = 3
49
+ TRUNCATE_EXISTING = 4
50
+
51
+ class InputStreamOptions(enum.IntFlag):
52
+ NONE = 0
53
+ PARTIAL = 0x1
54
+ READ_AHEAD = 0x2
55
+
56
+ class UnicodeEncoding(enum.IntEnum):
57
+ UTF8 = 0
58
+ UTF16_L_E = 1
59
+ UTF16_B_E = 2
60
+
61
+ Buffer = _winrt_windows_storage_streams.Buffer
62
+ DataReader = _winrt_windows_storage_streams.DataReader
63
+ DataReaderLoadOperation = _winrt_windows_storage_streams.DataReaderLoadOperation
64
+ DataWriter = _winrt_windows_storage_streams.DataWriter
65
+ DataWriterStoreOperation = _winrt_windows_storage_streams.DataWriterStoreOperation
66
+ FileInputStream = _winrt_windows_storage_streams.FileInputStream
67
+ FileOutputStream = _winrt_windows_storage_streams.FileOutputStream
68
+ FileRandomAccessStream = _winrt_windows_storage_streams.FileRandomAccessStream
69
+ InMemoryRandomAccessStream = _winrt_windows_storage_streams.InMemoryRandomAccessStream
70
+ InputStreamOverStream = _winrt_windows_storage_streams.InputStreamOverStream
71
+ OutputStreamOverStream = _winrt_windows_storage_streams.OutputStreamOverStream
72
+ RandomAccessStream = _winrt_windows_storage_streams.RandomAccessStream
73
+ RandomAccessStreamOverStream = _winrt_windows_storage_streams.RandomAccessStreamOverStream
74
+ RandomAccessStreamReference = _winrt_windows_storage_streams.RandomAccessStreamReference
75
+ IBuffer = _winrt_windows_storage_streams.IBuffer
76
+ IContentTypeProvider = _winrt_windows_storage_streams.IContentTypeProvider
77
+ IDataReader = _winrt_windows_storage_streams.IDataReader
78
+ IDataWriter = _winrt_windows_storage_streams.IDataWriter
79
+ IInputStream = _winrt_windows_storage_streams.IInputStream
80
+ IInputStreamReference = _winrt_windows_storage_streams.IInputStreamReference
81
+ IOutputStream = _winrt_windows_storage_streams.IOutputStream
82
+ IPropertySetSerializer = _winrt_windows_storage_streams.IPropertySetSerializer
83
+ IRandomAccessStream = _winrt_windows_storage_streams.IRandomAccessStream
84
+ IRandomAccessStreamReference = _winrt_windows_storage_streams.IRandomAccessStreamReference
85
+ IRandomAccessStreamWithContentType = _winrt_windows_storage_streams.IRandomAccessStreamWithContentType
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Storage.Streams
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Requires-Dist: winrt-runtime ==2.0.0-beta.1
15
+ Provides-Extra: all
16
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.0.0-beta.1 ; extra == 'all'
17
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.0.0-beta.1 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Storage[all] ==2.0.0-beta.1 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.System[all] ==2.0.0-beta.1 ; extra == 'all'
20
+
21
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
22
+
23
+ # winrt-Windows.Storage.Streams
24
+
25
+ Windows Runtime (WinRT) APIs for for the `Windows.Storage.Streams` namespace.
26
+
27
+ This package provides the `winrt.windows.storage.streams` module.
@@ -0,0 +1,7 @@
1
+ winrt/_winrt_windows_storage_streams.cp312-win32.pyd,sha256=Tvwh2fUAPQfaPH3oHRxcDnpUpSQDTnDq_62c058Fn74,413184
2
+ winrt/_winrt_windows_storage_streams.pyi,sha256=F88xB36XFG8es5dHie6GLwylU2WzeEkZ4tIqRVvtunE,27300
3
+ winrt/windows/storage/streams/__init__.py,sha256=Fg9Z-xIuaYtyrOgB2InLrcBGMX0_Qz0QXoLRnTlRiYw,3156
4
+ winrt_Windows.Storage.Streams-2.0.0b1.dist-info/METADATA,sha256=JTOMOh00VV6nukTWTZAH2XLBWX6Q1ZhjNbCCQmqe9eA,1239
5
+ winrt_Windows.Storage.Streams-2.0.0b1.dist-info/WHEEL,sha256=hgw21682hRmfLj5nsd2kf-rkdu51i6WpSSV68iGxfBg,98
6
+ winrt_Windows.Storage.Streams-2.0.0b1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
7
+ winrt_Windows.Storage.Streams-2.0.0b1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.41.1)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-win32
5
+