C# 클래스 Keyczar.Crypto.Streams.FinishingStream

Abstract stream type that requires a finish method to be called
상속: Stream
파일 보기 프로젝트 열기: jbtule/keyczar-dotnet

공개 메소드들

메소드 설명
Finish ( ) : void

Finishes this instance.

GetTagLength ( byte header ) : int

Gets the length of the tag.

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

When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Seek ( long offset, SeekOrigin origin ) : long

When overridden in a derived class, sets the position within the current stream.

SetLength ( long value ) : void

When overridden in a derived class, sets the length of the current stream.

비공개 메소드들

메소드 설명
Close ( ) : void

메소드 상세

Finish() 공개 추상적인 메소드

Finishes this instance.
public abstract Finish ( ) : void
리턴 void

GetTagLength() 공개 추상적인 메소드

Gets the length of the tag.
public abstract GetTagLength ( byte header ) : int
header byte The header.
리턴 int

Read() 공개 메소드

When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
The sum of and is larger than the buffer length. /// is null. /// or is negative. An I/O error occurs. The stream does not support reading. Methods were called after the stream was closed.
public Read ( byte buffer, int offset, int count ) : int
buffer byte An array of bytes. When this method returns, the buffer contains the specified byte array with the values between and ( + - 1) replaced by the bytes read from the current source.
offset int The zero-based byte offset in at which to begin storing the data read from the current stream.
count int The maximum number of bytes to be read from the current stream.
리턴 int

Seek() 공개 메소드

When overridden in a derived class, sets the position within the current stream.
An I/O error occurs. The stream does not support seeking, such as if the stream is constructed from a pipe or console output. Methods were called after the stream was closed.
public Seek ( long offset, SeekOrigin origin ) : long
offset long A byte offset relative to the parameter.
origin SeekOrigin A value of type indicating the reference point used to obtain the new position.
리턴 long

SetLength() 공개 메소드

When overridden in a derived class, sets the length of the current stream.
An I/O error occurs. The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. Methods were called after the stream was closed.
public SetLength ( long value ) : void
value long The desired length of the current stream in bytes.
리턴 void