HdrHistogram.HistogramBase.GetNeededByteBufferCapacity C# (CSharp) Méthode

GetNeededByteBufferCapacity() public méthode

Get the capacity needed to encode this histogram into a ByteBuffer
public GetNeededByteBufferCapacity ( ) : int
Résultat int
        public int GetNeededByteBufferCapacity()
        {
            return GetNeededByteBufferCapacity(CountsArrayLength);
        }

Same methods

HistogramBase::GetNeededByteBufferCapacity ( int relevantLength ) : int

Usage Example

Exemple #1
0
        private static HistogramBase CompressedEncodeDecode(HistogramBase source)
        {
            var targetBuffer = ByteBuffer.Allocate(source.GetNeededByteBufferCapacity());

            source.EncodeIntoCompressedByteBuffer(targetBuffer);
            targetBuffer.Position = 0;
            return(HistogramEncoding.DecodeFromCompressedByteBuffer(targetBuffer, 0));
        }
All Usage Examples Of HdrHistogram.HistogramBase::GetNeededByteBufferCapacity