C# Class System.Security.Cryptography.CryptoStream

Inheritance: Stream, IDisposable
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
CheckReadArguments void
CheckWriteArguments void
InitializeBuffer void
ReadAsyncCore Task
ReadAsyncInternal Task
WriteAsyncCore Task
WriteAsyncInternal Task

Méthodes publiques

Méthode Description
Clear ( ) : void
CryptoStream ( Stream stream, ICryptoTransform transform, CryptoStreamMode mode ) : System.Diagnostics.Contracts
CryptoStream ( Stream stream, ICryptoTransform transform, CryptoStreamMode mode, bool leaveOpen ) : System.Diagnostics.Contracts
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
FlushFinalBlock ( ) : void
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteByte ( byte value ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
CheckReadArguments ( byte buffer, int offset, int count ) : void
CheckWriteArguments ( byte buffer, int offset, int count ) : void
InitializeBuffer ( ) : void
ReadAsyncCore ( byte buffer, int offset, int count, CancellationToken cancellationToken, bool useAsync ) : Task
ReadAsyncInternal ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteAsyncCore ( byte buffer, int offset, int count, CancellationToken cancellationToken, bool useAsync ) : Task
WriteAsyncInternal ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Method Details

Clear() public méthode

public Clear ( ) : void
Résultat void

CryptoStream() public méthode

public CryptoStream ( Stream stream, ICryptoTransform transform, CryptoStreamMode mode ) : System.Diagnostics.Contracts
stream Stream
transform ICryptoTransform
mode CryptoStreamMode
Résultat System.Diagnostics.Contracts

CryptoStream() public méthode

public CryptoStream ( Stream stream, ICryptoTransform transform, CryptoStreamMode mode, bool leaveOpen ) : System.Diagnostics.Contracts
stream Stream
transform ICryptoTransform
mode CryptoStreamMode
leaveOpen bool
Résultat System.Diagnostics.Contracts

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

FlushAsync() public méthode

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
Résultat Task

FlushFinalBlock() public méthode

public FlushFinalBlock ( ) : void
Résultat void

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

ReadAsync() public méthode

public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken CancellationToken
Résultat Task

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

WriteAsync() public méthode

public WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken CancellationToken
Résultat Task

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void