Table of Contents

Class BlowfishStream

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll
public class BlowfishStream : Stream
Inheritance
object
MarshalByRefObject
Stream
BlowfishStream

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

NameTypeDescription
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

NameTypeDescription
buffer byte[]
offset int
count int
callback AsyncCallback
state object

Returns

IAsyncResult

EndRead(IAsyncResult)

public override int EndRead(IAsyncResult asyncResult)

Parameters

NameTypeDescription
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

NameTypeDescription
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

NameTypeDescription
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

NameTypeDescription
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

NameTypeDescription
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.