CryptoStream |
IObject | |
Stream |
Name | Description |
---|---|
![]() | Specifies mode of a cryptographic stream. |
Name | Description |
---|---|
![]() | Gets if the stream can be read from. |
![]() | Gets if the stream can seek. |
![]() | Gets if the Stream can timeout. |
![]() | Gets if the stream can be written to. |
![]() | Gets the length of the current stream. |
![]() | Gets the current position within the stream. |
![]() | Gets the current position within the stream. |
![]() | Gets the amount of time must pass before a Read timeout occurs. |
![]() | Sets the timeout period for Read operations. |
![]() | Gets the timeout period for a Write operation. |
![]() | Sets the timeout period for a Write operation. |
Name | Description |
---|---|
![]() | Begins an Asynchronous read operation (currently is only synchronous) |
![]() | Begins an asynchronous buffer write. Currently the CryptoStream class does not support asynchronous buffer writing. |
![]() | Closes the underlying Stream. |
![]() | Reads the bytes from the current stream and writes them to another stream. |
![]() | Signifies the end of an asynchronous read from the stream. |
![]() | Signifies the end of an asynchronous write to the stream. |
![]() | Returns a boolean indicating if the value and this object instance are the same instance. |
![]() | Flushes the buffers of the underlying stream. |
![]() | Flushes the remaining data to the underlying stream. |
![]() |
Returns a psuedo-unique number used to help identify this
object in memory. The current method is to return the value
obtained from ObjPtr. If a different method needs to be impelmented
then change the method here in this function. An override might be necessary if the hashcode should be derived from a value contained within the class. |
![]() | Reads a sequence of bytes from the current CryptoStream and advances the position within the stream by the number of bytes read. |
![]() | 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. |
![]() | Seeks a new position within the stream. |
![]() | Sets the length of the current stream. |
![]() |
Returns a string representation of this object instance.
The default method simply returns the application name
and class name in which this class resides. A Person class may return the persons name instead. |
![]() | Writes a sequence of bytes to the current CryptoStream and advances the current position within this stream by the number of bytes written. |
![]() | Writes a single byte to the Stream. |
A CryptoStream can be written to or read from in the same manner as other stream objects. A CryptoStream is designed to be used in a daisy-chain fashion, allowing for multiple transformations to be applied as a single process.
By supplying another Stream object to the NewCryptoStream constructor, an automatic daisy-chaining of the two streams is created. The Stream does not have to be another CryptoStream object. It can be any object implementing the Stream interface.