C# 클래스 HdrHistogram.HistogramEncoding

Exposes functionality to encode and decode HistogramBase types.
파일 보기 프로젝트 열기: HdrHistogram/HdrHistogram.NET 1 사용 예제들

공개 메소드들

메소드 설명
DecodeFromByteBuffer ( ByteBuffer buffer, long minBarForHighestTrackableValue, DeflateStream decompressor = null ) : HistogramBase

Construct a new histogram by decoding it from a ByteBuffer.

DecodeFromCompressedByteBuffer ( ByteBuffer buffer, long minBarForHighestTrackableValue ) : HistogramBase

Construct a new histogram by decoding it from a compressed form in a ByteBuffer.

EncodeIntoCompressedByteBuffer ( this source, ByteBuffer targetBuffer ) : int

Encode this histogram in compressed form into a ByteBuffer.

GetEncodingCookie ( this histogram ) : int

Gets the encoding cookie for a Histogram.

비공개 메소드들

메소드 설명
Create ( Type histogramType, IHeader header, long minBarForHighestTrackableValue ) : HistogramBase
GetBestTypeForWordSize ( int wordSizeInBytes ) : Type
GetCompressedEncodingCookie ( ) : int
GetCookieBase ( int cookie ) : int
GetHeaderSize ( int cookie ) : int
GetWordSizeInBytesFromCookie ( int cookie ) : int
PayLoadSourceBuffer ( ByteBuffer buffer, DeflateStream decompressor, int expectedCapacity, IHeader header ) : ByteBuffer
ReadHeader ( ByteBuffer buffer ) : IHeader

메소드 상세

DecodeFromByteBuffer() 공개 정적인 메소드

Construct a new histogram by decoding it from a ByteBuffer.
public static DecodeFromByteBuffer ( ByteBuffer buffer, long minBarForHighestTrackableValue, DeflateStream decompressor = null ) : HistogramBase
buffer ByteBuffer The buffer to decode from
minBarForHighestTrackableValue long Force highestTrackableValue to be set at least this high
decompressor System.IO.Compression.DeflateStream The that is being used to decompress the payload. Optional.
리턴 HistogramBase

DecodeFromCompressedByteBuffer() 공개 정적인 메소드

Construct a new histogram by decoding it from a compressed form in a ByteBuffer.
public static DecodeFromCompressedByteBuffer ( ByteBuffer buffer, long minBarForHighestTrackableValue ) : HistogramBase
buffer ByteBuffer The buffer to decode from
minBarForHighestTrackableValue long Force highestTrackableValue to be set at least this high
리턴 HistogramBase

EncodeIntoCompressedByteBuffer() 공개 정적인 메소드

Encode this histogram in compressed form into a ByteBuffer.
public static EncodeIntoCompressedByteBuffer ( this source, ByteBuffer targetBuffer ) : int
source this The histogram to encode
targetBuffer ByteBuffer The buffer to write to
리턴 int

GetEncodingCookie() 공개 정적인 메소드

Gets the encoding cookie for a Histogram.
public static GetEncodingCookie ( this histogram ) : int
histogram this The histogram to get the cookie for
리턴 int