Return the minimum byte size needed to represent n values. Does not round up. Even if n is a multiple of kElementCount, this may be different from paddedByteSize() if kPaddingBytes != 0, as the padding at the end of the last node is not included in the result. Note that the calculation below works for n=0 correctly (returns 0).

Synopsis

Declared in <folly/Padded.h>

constexpr
static
size_t
unpaddedByteSize(size_t n);

Return Value

The unpadded byte size.

Parameters

Name

Description

n

The number of values.

Created with MrDocs