//! Codec utility functions
use crate::;
use Buf;
/// Checks if the buffer has at least `len` bytes remaining. Returns an [Error::EndOfBuffer] if not.
/// Ensures the next `size` bytes are all zeroes in the provided buffer, returning an [Error]
/// otherwise.