C# Класс CK.Monitoring.LogReaderStreamInfo

Container for an uncompressed log stream and other meta-information.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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