C# 클래스 CK.Monitoring.LogReaderStreamInfo

Container for an uncompressed log stream and other meta-information.
파일 보기 프로젝트 열기: Invenietis/ck-core 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
HeaderLength int
IsCompressed bool
LogStream Stream
Version int

공개 메소드들

메소드 설명
OpenStream ( Stream seekableStream ) : LogReaderStreamInfo

Opens a log stream, handling version and compression. On success, its Stream positionned after the header (before the first log entry). Supports headers: - Old version header (05 00 00 00) - CKMOD header (43 4B 4D 4F 4E) followed by version - RFC 1952 GZIP header (1F 8B), will be handled automatically by: a GZip stream reader will be created.

비공개 메소드들

메소드 설명
DoOpenLogStream ( Stream s, bool isInsideGzip ) : LogReaderStreamInfo
LogReaderStreamInfo ( Stream s, bool c, int v, int hLen ) : System

메소드 상세

OpenStream() 공개 정적인 메소드

Opens a log stream, handling version and compression. On success, its Stream positionned after the header (before the first log entry). Supports headers: - Old version header (05 00 00 00) - CKMOD header (43 4B 4D 4F 4E) followed by version - RFC 1952 GZIP header (1F 8B), will be handled automatically by: a GZip stream reader will be created.
public static OpenStream ( Stream seekableStream ) : LogReaderStreamInfo
seekableStream Stream Log stream to read.
리턴 LogReaderStreamInfo

프로퍼티 상세

HeaderLength 공개적으로 프로퍼티

The length of the version header.
public int HeaderLength
리턴 int

IsCompressed 공개적으로 프로퍼티

Gets a value indicating whether the log stream is contained in a compressed stream. true if the log stream is contained in a compressed stream; otherwise, false.
public bool IsCompressed
리턴 bool

LogStream 공개적으로 프로퍼티

Gets the log stream: it is opened and uncompressed. Its position is before the version number if Version is equal to -1; otherwise, it is after.
public Stream LogStream
리턴 Stream

Version 공개적으로 프로퍼티

The version.
public int Version
리턴 int