C# 클래스 Amazon.Runtime.Internal.Util.WrapperStream

A wrapper stream.
상속: Stream
파일 보기 프로젝트 열기: aws/aws-sdk-net 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.

Flush ( ) : void

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

GetNonWrapperBaseStream ( ) : Stream

Returns the first base non-WrapperStream.

GetNonWrapperBaseStream ( Stream stream ) : Stream

Returns the first base non-WrapperStream.

GetSeekableBaseStream ( ) : Stream

Returns the first base non-WrapperStream.

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

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

SearchWrappedStream ( bool>.Func condition ) : Stream
SearchWrappedStream ( Stream stream, bool>.Func condition ) : Stream
Seek ( long offset, SeekOrigin origin ) : long

Sets the position within the current stream.

SetLength ( long value ) : void

Sets the length of the current stream.

WrapperStream ( Stream baseStream ) : System

Initializes WrapperStream with a base stream.

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

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

Close() 공개 메소드

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
public Close ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Flush() 공개 메소드

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
public Flush ( ) : void
리턴 void

GetNonWrapperBaseStream() 공개 메소드

Returns the first base non-WrapperStream.
public GetNonWrapperBaseStream ( ) : Stream
리턴 Stream

GetNonWrapperBaseStream() 공개 정적인 메소드

Returns the first base non-WrapperStream.
public static GetNonWrapperBaseStream ( Stream stream ) : Stream
stream Stream Potential WrapperStream
리턴 Stream

GetSeekableBaseStream() 공개 메소드

Returns the first base non-WrapperStream.
public GetSeekableBaseStream ( ) : Stream
리턴 Stream

Read() 공개 메소드

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
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 offset and (offset + count - 1) replaced /// by the bytes read from the current source. ///
offset int /// The zero-based byte offset in buffer 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

SearchWrappedStream() 공개 메소드

public SearchWrappedStream ( bool>.Func condition ) : Stream
condition bool>.Func
리턴 Stream

SearchWrappedStream() 공개 정적인 메소드

public static SearchWrappedStream ( Stream stream, bool>.Func condition ) : Stream
stream Stream
condition bool>.Func
리턴 Stream

Seek() 공개 메소드

Sets the position within the current stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long A byte offset relative to the origin parameter.
origin SeekOrigin /// A value of type System.IO.SeekOrigin indicating the reference point used /// to obtain the new position.
리턴 long

SetLength() 공개 메소드

Sets the length of the current stream.
public SetLength ( long value ) : void
value long The desired length of the current stream in bytes.
리턴 void

WrapperStream() 공개 메소드

Initializes WrapperStream with a base stream.
public WrapperStream ( Stream baseStream ) : System
baseStream Stream
리턴 System

Write() 공개 메소드

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public Write ( byte buffer, int offset, int count ) : void
buffer byte /// An array of bytes. This method copies count bytes from buffer to the current stream. ///
offset int /// The zero-based byte offset in buffer at which to begin copying bytes to the /// current stream. ///
count int The number of bytes to be written to the current stream.
리턴 void