//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/corefoundation/cfbyteorder?language=objc)
#[cfg(feature = "CFBase")]
pub type CFByteOrder = CFIndex;

// TODO: pub fn CFSwapInt16(arg: u16,) -> u16;

// TODO: pub fn CFSwapInt32(arg: u32,) -> u32;

// TODO: pub fn CFSwapInt64(arg: u64,) -> u64;

/// [Apple's documentation](https://developer.apple.com/documentation/corefoundation/cfswappedfloat32?language=objc)
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct CFSwappedFloat32 {
    pub v: u32,
}

#[cfg(feature = "objc2")]
unsafe impl Encode for CFSwappedFloat32 {
    const ENCODING: Encoding = Encoding::Struct("?", &[<u32>::ENCODING]);
}

#[cfg(feature = "objc2")]
unsafe impl RefEncode for CFSwappedFloat32 {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// [Apple's documentation](https://developer.apple.com/documentation/corefoundation/cfswappedfloat64?language=objc)
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct CFSwappedFloat64 {
    pub v: u64,
}

#[cfg(feature = "objc2")]
unsafe impl Encode for CFSwappedFloat64 {
    const ENCODING: Encoding = Encoding::Struct("?", &[<u64>::ENCODING]);
}

#[cfg(feature = "objc2")]
unsafe impl RefEncode for CFSwappedFloat64 {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
