// SPDX-License-Identifier: Apache-2.0
// Copyright 2026 ZeroDDS Contributors
//! Byte order.
/// Which byte order a stream is in.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]pubenumEndianness{/// Most significant byte first. The order a KeyHash holder is always
/// in, whatever the sample is. DDSI-RTPS 2.5 ยง9.6.3.8.
Big,/// Least significant byte first.
Little,}implEndianness{/// Both orders.
pubconstALL:[Self;2]=[Self::Big,Self::Little];/// Whether this is little-endian.
#[must_use]pubconstfnis_little(self)->bool{matches!(self,Self::Little)}}