std::size_t SnappyMessageCompressor::getMaxCompressedSize(size_t inputSize) {
    // Testing has shown that snappy typically requests two additional bytes of buffer space when
    // compressing beyond what snappy::MaxCompressedLength returns. So by padding this by 2 more
    // bytes, we can avoid additional allocations/copies during compression.
    return snappy::MaxCompressedLength(inputSize) + 2;
}
std::size_t SnappyMessageCompressor::getMaxCompressedSize(size_t inputSize) {
     
     
     
    return snappy::MaxCompressedLength(inputSize) + 2;
}