Add comment for IPV6_MASKS_COUNT

This commit is contained in:
vdimir 2020-12-01 22:12:11 +03:00 committed by GitHub
parent 1aaff75d9a
commit 9ce010e82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,8 @@
namespace DB namespace DB
{ {
/// Result array could be indexed with all possible uint8 values without extra check.
/// For values greater than 128 we will store same value as for 128 (all bits set).
constexpr size_t IPV6_MASKS_COUNT = 256; constexpr size_t IPV6_MASKS_COUNT = 256;
using RawMaskArray = std::array<uint8_t, IPV6_BINARY_LENGTH>; using RawMaskArray = std::array<uint8_t, IPV6_BINARY_LENGTH>;