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