1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use crate::*;
// TODO: pub fn NSHostByteOrder() -> c_long;
// TODO: pub fn NSSwapShort(inv: c_ushort,) -> c_ushort;
// TODO: pub fn NSSwapInt(inv: c_uint,) -> c_uint;
// TODO: pub fn NSSwapLong(inv: c_ulong,) -> c_ulong;
// TODO: pub fn NSSwapLongLong(inv: c_ulonglong,) -> c_ulonglong;
// TODO: pub fn NSSwapBigShortToHost(x: c_ushort,) -> c_ushort;
// TODO: pub fn NSSwapBigIntToHost(x: c_uint,) -> c_uint;
// TODO: pub fn NSSwapBigLongToHost(x: c_ulong,) -> c_ulong;
// TODO: pub fn NSSwapBigLongLongToHost(x: c_ulonglong,) -> c_ulonglong;
// TODO: pub fn NSSwapHostShortToBig(x: c_ushort,) -> c_ushort;
// TODO: pub fn NSSwapHostIntToBig(x: c_uint,) -> c_uint;
// TODO: pub fn NSSwapHostLongToBig(x: c_ulong,) -> c_ulong;
// TODO: pub fn NSSwapHostLongLongToBig(x: c_ulonglong,) -> c_ulonglong;
// TODO: pub fn NSSwapLittleShortToHost(x: c_ushort,) -> c_ushort;
// TODO: pub fn NSSwapLittleIntToHost(x: c_uint,) -> c_uint;
// TODO: pub fn NSSwapLittleLongToHost(x: c_ulong,) -> c_ulong;
// TODO: pub fn NSSwapLittleLongLongToHost(x: c_ulonglong,) -> c_ulonglong;
// TODO: pub fn NSSwapHostShortToLittle(x: c_ushort,) -> c_ushort;
// TODO: pub fn NSSwapHostIntToLittle(x: c_uint,) -> c_uint;
// TODO: pub fn NSSwapHostLongToLittle(x: c_ulong,) -> c_ulong;
// TODO: pub fn NSSwapHostLongLongToLittle(x: c_ulonglong,) -> c_ulonglong;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct NSSwappedFloat {
pub v: c_uint,
}
unsafe impl Encode for NSSwappedFloat {
const ENCODING: Encoding = Encoding::Struct("?", &[<c_uint>::ENCODING]);
}
unsafe impl RefEncode for NSSwappedFloat {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
unsafe impl Send for NSSwappedFloat {}
unsafe impl Sync for NSSwappedFloat {}
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct NSSwappedDouble {
pub v: c_ulonglong,
}
unsafe impl Encode for NSSwappedDouble {
const ENCODING: Encoding = Encoding::Struct("?", &[<c_ulonglong>::ENCODING]);
}
unsafe impl RefEncode for NSSwappedDouble {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
unsafe impl Send for NSSwappedDouble {}
unsafe impl Sync for NSSwappedDouble {}
// TODO: pub fn NSConvertHostFloatToSwapped(x: c_float,) -> NSSwappedFloat;
// TODO: pub fn NSConvertSwappedFloatToHost(x: NSSwappedFloat,) -> c_float;
// TODO: pub fn NSConvertHostDoubleToSwapped(x: c_double,) -> NSSwappedDouble;
// TODO: pub fn NSConvertSwappedDoubleToHost(x: NSSwappedDouble,) -> c_double;
// TODO: pub fn NSSwapFloat(x: NSSwappedFloat,) -> NSSwappedFloat;
// TODO: pub fn NSSwapDouble(x: NSSwappedDouble,) -> NSSwappedDouble;
// TODO: pub fn NSSwapBigDoubleToHost(x: NSSwappedDouble,) -> c_double;
// TODO: pub fn NSSwapBigFloatToHost(x: NSSwappedFloat,) -> c_float;
// TODO: pub fn NSSwapHostDoubleToBig(x: c_double,) -> NSSwappedDouble;
// TODO: pub fn NSSwapHostFloatToBig(x: c_float,) -> NSSwappedFloat;
// TODO: pub fn NSSwapLittleDoubleToHost(x: NSSwappedDouble,) -> c_double;
// TODO: pub fn NSSwapLittleFloatToHost(x: NSSwappedFloat,) -> c_float;
// TODO: pub fn NSSwapHostDoubleToLittle(x: c_double,) -> NSSwappedDouble;
// TODO: pub fn NSSwapHostFloatToLittle(x: c_float,) -> NSSwappedFloat;