Class BlowfishStream
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
public class BlowfishStream : Stream
- Inheritance
-
objectMarshalByRefObjectStreamBlowfishStream
Properties
CanRead
Returns true if the stream support reads.
public override bool CanRead { get; }
Property Value
- bool
CanSeek
Returns true is the stream supports seeks.
public override bool CanSeek { get; }
Property Value
- bool
CanWrite
Returns true if the stream supports writes.
public override bool CanWrite { get; }
Property Value
- bool
Length
Returns the length of the stream.
public override long Length { get; }
Property Value
- long
Position
Gets or Sets the posistion of the stream.
public override long Position { get; set; }
Property Value
- long
Methods
BeginRead(byte[], int, int, AsyncCallback, object)
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
Parameters
| Name | Type | Description |
|---|---|---|
buffer |
byte[] | |
offset |
int | |
count |
int | |
callback |
AsyncCallback | |
state |
object |
Returns
- IAsyncResult
BeginWrite(byte[], int, int, AsyncCallback, object)
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
Parameters
| Name | Type | Description |
|---|---|---|
buffer |
byte[] | |
offset |
int | |
count |
int | |
callback |
AsyncCallback | |
state |
object |
Returns
- IAsyncResult
EndRead(IAsyncResult)
public override int EndRead(IAsyncResult asyncResult)
Parameters
| Name | Type | Description |
|---|---|---|
asyncResult |
IAsyncResult |
Returns
- int
Flush()
Flushes the stream.
public override void Flush()
Read(byte[], int, int)
Read data from the stream and encrypt it.
public override int Read(byte[] buffer, int offset, int count)
Parameters
| Name | Type | Description |
|---|---|---|
buffer |
byte[] | The buffer to read into. |
offset |
int | The offset in the buffer to begin storing data. |
count |
int | The number of bytes to read. |
Returns
- int
Seek(long, SeekOrigin)
Move the current stream posistion to the specified location.
public override long Seek(long offset, SeekOrigin origin)
Parameters
| Name | Type | Description |
|---|---|---|
offset |
long | The offset from the origin to seek. |
origin |
SeekOrigin | The origin to seek from. |
Returns
- long
The new position.
SetLength(long)
Set the stream length.
public override void SetLength(long value)
Parameters
| Name | Type | Description |
|---|---|---|
value |
long | The length to set. |
Write(byte[], int, int)
Write data to the stream after decrypting it.
public override void Write(byte[] buffer, int offset, int count)
Parameters
| Name | Type | Description |
|---|---|---|
buffer |
byte[] | The buffer containing the data to write. |
offset |
int | The offset in the buffer where the data begins. |
count |
int | The number of bytes to write. |