public int GetNeededByteBufferCapacity()
{
return GetNeededByteBufferCapacity(CountsArrayLength);
}
HistogramBase::GetNeededByteBufferCapacity ( int relevantLength ) : int |
private static HistogramBase CompressedEncodeDecode(HistogramBase source) { var targetBuffer = ByteBuffer.Allocate(source.GetNeededByteBufferCapacity()); source.EncodeIntoCompressedByteBuffer(targetBuffer); targetBuffer.Position = 0; return(HistogramEncoding.DecodeFromCompressedByteBuffer(targetBuffer, 0)); }