pub use AbxWriter;
pub use xml_to_abx;
use crate::;
/// Encodes a list of events as ABX bytes.
///
/// Shorthand for writing each event with an [`AbxWriter`] over a `Vec<u8>`.
///
/// # Errors
///
/// Returns [`AbxError::ValueTooLong`](crate::AbxError::ValueTooLong) if a string
/// or byte value is longer than 65,535 bytes.
///
/// # Examples
///
/// ```
/// use android_abx::{Event, events_to_abx};
///
/// let data = events_to_abx(&[Event::StartDocument, Event::EndDocument])?;
/// assert!(data.starts_with(&android_abx::MAGIC));
/// # Ok::<(), android_abx::AbxError>(())
/// ```