add a new interface: snappy_validate_compressed_buffer