[][src]Function spatialite_sys::gaiaImport16

pub unsafe extern "C" fn gaiaImport16(
    p: *const c_uchar,
    little_endian: c_int,
    little_endian_arch: c_int
) -> c_short

Import an INT-16 value in endian-aware fashion

\param p endian-dependent representation (input buffer). \param little_endian 0 if the input buffer is big-endian: any other value for little-endian. \param little_endian_arch the value returned by gaiaEndianArch()

\return the internal SHORT value

\sa gaiaEndianArch, gaiaExport16

\note you are expected to pass an input buffer corresponding to an allocation size of (at least) 2 bytes.