Edit

Share via


BrotliEncoder.GetMaxCompressedLength(Int32) Method

Definition

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

public:
 static int GetMaxCompressedLength(int inputSize);
public static int GetMaxCompressedLength (int inputSize);
static member GetMaxCompressedLength : int -> int
Public Shared Function GetMaxCompressedLength (inputSize As Integer) As Integer

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