public sealed class SuperStreamFixed : SuperStreamBasePublic NotInheritable Class SuperStreamFixed
Inherits SuperStreamBasepublic ref class SuperStreamFixed sealed : public SuperStreamBase[<SealedAttribute>]
type SuperStreamFixed =
class
inherit SuperStreamBase
end| SuperStreamFixed | Инициализирует новый экземпляр класса SuperStreamFixed |
| CanRead | Признак того, что поток поддерживает чтение данных. (Унаследован от SuperStreamBase) |
| CanSeek |
Признак того, что текущую позицию в потоке можно изменять.
Свойство всегда возвращает false.
(Унаследован от SuperStreamBase) |
| CanTimeout | Gets a value that determines whether the current stream can time out. (Унаследован от Stream) |
| CanWrite |
Признак того, что в поток можно записывать данные методом [System.IO.Stream.Write].
Свойство всегда возвращает false.
(Унаследован от SuperStreamBase) |
| Length | Общее количество доступных в потоке байт. (Унаследован от SuperStreamBase) |
| Position | Текущая позиция в потоке. Поддерживается только чтение свойства. (Унаследован от SuperStreamBase) |
| ReadTimeout | Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out. (Унаследован от Stream) |
| WriteTimeout | Gets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out. (Унаследован от Stream) |
| BeginRead | Begins an asynchronous read operation. (Consider using ReadAsync(Byte, Int32, Int32) instead.) (Унаследован от Stream) |
| BeginWrite | Begins an asynchronous write operation. (Consider using WriteAsync(Byte, Int32, Int32) instead.) (Унаследован от Stream) |
| Close | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed. (Унаследован от Stream) |
| CopyTo(Stream) | Reads the bytes from the current stream and writes them to another stream. (Унаследован от Stream) |
| CopyTo(Stream, Int32) | Reads the bytes from the current stream and writes them to another stream, using a specified buffer size. (Унаследован от Stream) |
| CopyToAsync(Stream) | Asynchronously reads the bytes from the current stream and writes them to another stream. (Унаследован от Stream) |
| CopyToAsync(Stream, Int32) | Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size. (Унаследован от Stream) |
| CopyToAsync(Stream, CancellationToken) | Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified cancellation token. (Унаследован от Stream) |
| CopyToAsync(Stream, Int32, CancellationToken) | Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token. (Унаследован от Stream) |
| CreateWaitHandle | Allocates a WaitHandle object. (Унаследован от Stream) Устарело. |
| Dispose | Releases all resources used by the Stream. (Унаследован от Stream) |
| Dispose(Boolean) | Releases the unmanaged resources used by the Stream and optionally releases the managed resources. (Переопределяет StreamDispose(Boolean)) |
| DisposeAsync | Asynchronously releases the unmanaged resources used by the Stream. (Переопределяет StreamDisposeAsync) |
| EndRead | Waits for the pending asynchronous read to complete. (Consider using ReadAsync(Byte, Int32, Int32) instead.) (Унаследован от Stream) |
| EndWrite | Ends an asynchronous write operation. (Consider using WriteAsync(Byte, Int32, Int32) instead.) (Унаследован от Stream) |
| Equals | Determines whether the specified object is equal to the current object. (Унаследован от Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object) |
| Flush |
Записывает все данные из буфера потока на устройство и очищает буфер.
Метод не поддерживается.
(Унаследован от SuperStreamBase) |
| FlushAsync | Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Унаследован от Stream) |
| FlushAsync(CancellationToken) |
Записывает все данные из буфера потока на устройство и очищает буфер.
Метод не поддерживается.
(Унаследован от SuperStreamBase) |
| GetHashCode | Serves as the default hash function. (Унаследован от Object) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Унаследован от MarshalByRefObject) |
| GetType | Gets the Type of the current instance. (Унаследован от Object) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Унаследован от MarshalByRefObject) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object) |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Унаследован от MarshalByRefObject) |
| ObjectInvariant | Provides support for a Contract. (Унаследован от Stream) Устарело. |
| OnMovedToNextStream |
Выполняет обработчики события MovedToNextStream.
(Унаследован от SuperStreamBase) |
| Read(SpanByte) | When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Унаследован от SuperStreamBase) |
| Read(Byte, Int32, Int32) | When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Унаследован от SuperStreamBase) |
| ReadAsync(MemoryByte, CancellationToken) | Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests. (Унаследован от SuperStreamBase) |
| ReadAsync(Byte, Int32, Int32) | Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Унаследован от Stream) |
| ReadAsync(Byte, Int32, Int32, CancellationToken) | Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests. (Унаследован от SuperStreamBase) |
| ReadByte | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. (Унаследован от SuperStreamBase) |
| Reset |
Сбрасывает позицию потока на нулевую, позволяя заново прочитать его содержимое.
Также можно установить свойство Position, равное 0.
(Переопределяет SuperStreamBaseReset) |
| Seek | Изменяет текущую позицию в потоке. Метод не поддерживается. (Унаследован от SuperStreamBase) |
| SetLength | Устанавливает размер данных в потоке. Метод не поддерживается. (Унаследован от SuperStreamBase) |
| StopAsync |
Асинхронно останавливает поток. После выполнения метода поток перестанет возвращать данные.
(Унаследован от SuperStreamBase) |
| ToString | Returns a string that represents the current object. (Унаследован от Object) |
| TryMoveToNextStream |
Переходит на следующий поток и возвращает признак того, что поток CurrentStream установлен.
(Переопределяет SuperStreamBaseTryMoveToNextStream) |
| TryMoveToNextStreamAsync |
Переходит на следующий поток и возвращает признак того, что поток CurrentStream установлен.
(Переопределяет SuperStreamBaseTryMoveToNextStreamAsync(CancellationToken)) |
| Write(ReadOnlySpanByte) | When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Унаследован от SuperStreamBase) |
| Write(Byte, Int32, Int32) | Записывает данные в поток из массива байт. Метод не поддерживается. (Унаследован от SuperStreamBase) |
| WriteAsync(ReadOnlyMemoryByte, CancellationToken) | Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests. (Унаследован от SuperStreamBase) |
| WriteAsync(Byte, Int32, Int32) | Asynchronously writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Унаследован от Stream) |
| WriteAsync(Byte, Int32, Int32, CancellationToken) | Записывает данные в поток из массива байт. Метод не поддерживается. (Унаследован от SuperStreamBase) |
| WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Унаследован от SuperStreamBase) |
| MovedToNextStream |
Событие, выполняемое при каждом переходе к следующему дочернему потоку при чтении из потока SuperStream.
(Унаследован от SuperStreamBase) |
| BytesRead |
Прочитанное число байт.
(Унаследован от SuperStreamBase) |
| CurrentStream |
Текущий поток, из которого выполняется чтение, или null, если чтение ещё не началось или уже закончилось.
(Унаследован от SuperStreamBase) |
| StreamStopped |
Признак того, что поток асинхронно остановлен и больше не будет возвращать данные.
(Унаследован от SuperStreamBase) |
| AsMemoryStreamAsync |
Возвращает поток stream, преобразованный к типу MemoryStream.
Если его тип отличается от MemoryStream, то его содержимое будет скопировано в созданный объект
MemoryStream, после чего исходный stream будет освобождён,
но только если параметр disposeNonMemoryStream равен true.
(Определяется IOExtensions) |
| CalculateStreamLengthAsync |
Вычисляет длину потока посредством его чтения, но отбрасывая сам контент.
(Определяется IOExtensions) |
| CreateBase64WrapperStream |
Возвращает поток, который оборачивает данные исходного потока в виде UTF-8 строки, содержащей эти данные в base64-форме.
(Определяется IOExtensions) |
| ReadAllBytes |
Выполняет синхронное чтение всех данных потока в виде одного массива байт.
Чтение выполняется до того момента, как поток перестанет возвращать данные,
при этом метод не использует свойство Length
для определения количества считываемых данных.
(Определяется IOExtensions) |
| ReadAllBytesAsync |
Выполняет асинхронное чтение всех данных потока в виде одного массива байт.
Чтение выполняется до того момента, как поток перестанет возвращать данные,
при этом метод не использует свойство Length
для определения количества считываемых данных.
(Определяется IOExtensions) |
| ReadBase64Async |
Возвращает контент потока в формате base64.
(Определяется IOExtensions) |
| ReadBytesExact |
Выполняет чтение данных из потока stream и записывает их в возвращаемый массив байт,
который имеет заданный размер length байт.
(Определяется IOExtensions) |
| ReadBytesExactAsync |
Выполняет асинхронное чтение данных из потока stream и записывает их в возвращаемый массив байт,
который имеет заданный размер length байт.
(Определяется IOExtensions) |
| ReadExact |
Выполняет чтение указанного количества байт из потока в буфер.
В результате выполнения метода либо буфер должен быть заполнен, либо поток завершился раньше, чем данные были прочитаны.
Возвращает количество действительно прочитанных байт, которое может быть меньше указанного количества
только в том случае, если поток завершился.
(Определяется IOExtensions) |
| ReadExactAsync |
Выполняет асинхронное чтение указанного количества байт из потока в буфер.
В результате выполнения метода либо буфер должен быть заполнен, либо поток завершился раньше, чем данные были прочитаны.
Возвращает количество действительно прочитанных байт, которое может быть меньше указанного количества
только в том случае, если поток завершился.
(Определяется IOExtensions) |
| ReadInt32Async |
Выполняет асинхронное чтение целочисленного значения Int32 из потока.
(Определяется IOExtensions) |
| WriteInt32Async |
Выполняет асинхронную запись целочисленного значения Int32 в поток.
(Определяется IOExtensions) |
| WriteTextAsync |
Записывает текст в поток в указанной кодировке. Также записывает преамбулу (BOM) в соответствии
с её наличием в кодировке encoding, что также определяется тем,
что stream находится в нулевой позиции, или если он не сообщает свою позицию,
т.е. CanSeek равно false (по этим же правилам работает StreamWriter).
(Определяется IOExtensions) |
| WriteTextAsync |
Записывает текст в поток в указанной кодировке. Также записывает преамбулу (BOM) в соответствии
с её наличием в кодировке encoding, что также определяется тем,
что stream находится в нулевой позиции, или если он не сообщает свою позицию,
т.е. CanSeek равно false (по этим же правилам работает StreamWriter).
(Определяется IOExtensions) |