C# 클래스 CmisSync.Lib.Streams.OffsetStream

Offset stream provides the possibility to simulate a longer stream with a virtual empty space at the beginning with the size of offset.
상속: StreamWrapper
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync 1 사용 예제들

공개 메소드들

메소드 설명
OffsetStream ( Stream stream, long offset ) : System

Initializes a new instance of the CmisSync.Lib.Streams.OffsetStream class.

Seek ( long offset, SeekOrigin origin ) : long

Seek the specified offset based on the given origin position.

SetLength ( long length ) : void

Sets the length to the given length. It must be greater than the Offset

메소드 상세

OffsetStream() 공개 메소드

Initializes a new instance of the CmisSync.Lib.Streams.OffsetStream class.
public OffsetStream ( Stream stream, long offset ) : System
stream Stream /// Stream which should be used after the given offset. ///
offset long /// Size of the empty offset. ///
리턴 System

Seek() 공개 메소드

Seek the specified offset based on the given origin position.
public Seek ( long offset, SeekOrigin origin ) : long
offset long /// Offset. ///
origin SeekOrigin /// Origin. ///
리턴 long

SetLength() 공개 메소드

Sets the length to the given length. It must be greater than the Offset
public SetLength ( long length ) : void
length long /// The new Length ///
리턴 void