C# Class System.Security.Cryptography.CryptoStream

Inheritance: Stream, IDisposable
Mostrar archivo Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CheckReadArguments void
CheckWriteArguments void
InitializeBuffer void
ReadAsyncCore Task
ReadAsyncInternal Task
WriteAsyncCore Task
WriteAsyncInternal Task

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method 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 method

public Clear ( ) : void
return void

CryptoStream() public method

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

CryptoStream() public method

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

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

FlushAsync() public method

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
return Task

FlushFinalBlock() public method

public FlushFinalBlock ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadAsync() public method

public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken CancellationToken
return Task

ReadByte() public method

public ReadByte ( ) : int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

WriteAsync() public method

public WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken CancellationToken
return Task

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void