#pragma once #include #include "vfxpreopenexr-errors-private.h" #include #include inline Imf_3_0::OStream const & to_cpp_ref( Imf_OStream_t const * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::OStream & to_cpp_ref( Imf_OStream_t * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::OStream const * to_cpp( Imf_OStream_t const * rhs) { return reinterpret_cast(rhs); } inline Imf_3_0::OStream * to_cpp( Imf_OStream_t * rhs) { return reinterpret_cast(rhs); } inline void to_c( Imf_OStream_t const * * lhs , Imf_3_0::OStream const & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_OStream_t const * * lhs , Imf_3_0::OStream const * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c( Imf_OStream_t * * lhs , Imf_3_0::OStream & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_OStream_t * * lhs , Imf_3_0::OStream * rhs) { *(lhs) = reinterpret_cast(rhs); } inline Imf_3_0::IStream const & to_cpp_ref( Imf_IStream_t const * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::IStream & to_cpp_ref( Imf_IStream_t * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::IStream const * to_cpp( Imf_IStream_t const * rhs) { return reinterpret_cast(rhs); } inline Imf_3_0::IStream * to_cpp( Imf_IStream_t * rhs) { return reinterpret_cast(rhs); } inline void to_c( Imf_IStream_t const * * lhs , Imf_3_0::IStream const & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_IStream_t const * * lhs , Imf_3_0::IStream const * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c( Imf_IStream_t * * lhs , Imf_3_0::IStream & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_IStream_t * * lhs , Imf_3_0::IStream * rhs) { *(lhs) = reinterpret_cast(rhs); }