#pragma once #include #include "vfxpreopenexr-errors-private.h" #include #include inline Imf_3_0::Compression const & Imf_Compression_to_cpp_ref( Imf_Compression const * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::Compression & Imf_Compression_to_cpp_ref( Imf_Compression * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::Compression const * Imf_Compression_to_cpp( Imf_Compression const * rhs) { return reinterpret_cast(rhs); } inline Imf_3_0::Compression * Imf_Compression_to_cpp( Imf_Compression * rhs) { return reinterpret_cast(rhs); } inline void to_c( Imf_Compression const * * lhs , Imf_3_0::Compression const & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_Compression const * * lhs , Imf_3_0::Compression const * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c( Imf_Compression * * lhs , Imf_3_0::Compression & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_Compression * * lhs , Imf_3_0::Compression * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c_copy( Imf_Compression * lhs , Imf_3_0::Compression const & rhs) { memcpy(lhs, &(rhs), sizeof(*(lhs))); }