Прочетете на английски Редактиране

Споделяне чрез


BrotliEncoder.GetMaxCompressedLength(Int32) Method

Definition

Gets the maximum expected compressed length for the provided input size.

C#
public static int GetMaxCompressedLength(int inputSize);

Parameters

inputSize
Int32

The input size to get the maximum expected compressed length from. Must be greater or equal than 0 and less or equal than Int32.MaxValue - 515.

Returns

A number representing the maximum compressed length for the provided input size.

Exceptions

inputSize is less than 0, the minimum allowed input size, or greater than Int32.MaxValue - 515, the maximum allowed input size.

Remarks

Returns 1 if inputSize is 0.

Applies to

Продукт Версии
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1