// Copyright (c) 2021 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
//! Contains constants that are common across table operations.
use ;
/**
The size of a block descriptor in bytes.
This is a 1-byte enum + a 32-bit CRC (4 bytes).
*/
pub const BLOCK_DESCRIPTOR_SIZE_BYTES: usize = 1 + 4;
/**
CRC calculator using the iSCSI polynomial.
LevelDB uses the [google/crc32c](https://github.com/google/crc32c) CRC implementation. This
implementation specifies using the iSCSI polynomial so that is what we use here as well.
*/
pub const CRC_CALCULATOR: = new;