1use vector_common::constants::ZSTD_MAGIC; 2 3pub fn is_zstd(payload: &[u8]) -> bool { 4 payload.len() >= 4 && payload.starts_with(ZSTD_MAGIC) 5}