System::IO::WrapSTDIOStream method

System::IO::WrapSTDIOStream(std::basic_istream<char_type, traits_type>&, STDIOStreamWrappingMode) method

Wrapper function for std::basic_istream-like streams.

template<typename char_type,typename traits_type> SharedPtr<Stream> System::IO::WrapSTDIOStream(std::basic_istream<char_type, traits_type> &stream, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary)
ParameterTypeDescription
streamstd::basic_istream<char_type, traits_type>&std::basic_istream-like stream
modeSTDIOStreamWrappingModeWrapping mode

ReturnValue

BasicSTDIStreamWrapper wrapper

See Also

System::IO::WrapSTDIOStream(std::basic_ostream<char_type, traits_type>&, STDIOStreamWrappingMode) method

Wrapper function for std::basic_ostream-like streams.

template<typename char_type,typename traits_type> SharedPtr<Stream> System::IO::WrapSTDIOStream(std::basic_ostream<char_type, traits_type> &stream, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary)
ParameterTypeDescription
streamstd::basic_ostream<char_type, traits_type>&std::basic_ostream-like stream
modeSTDIOStreamWrappingModeWrapping mode

ReturnValue

BasicSTDOStreamWrapper wrapper

See Also

System::IO::WrapSTDIOStream(std::basic_iostream<char_type, traits_type>&, STDIOStreamWrappingMode, STDIOStreamPositionPreference) method

Wrapper function for std::basic_iostream-like streams.

template<typename char_type,typename traits_type> SharedPtr<Stream> System::IO::WrapSTDIOStream(std::basic_iostream<char_type, traits_type> &stream, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary, STDIOStreamPositionPreference pref_pos=STDIOStreamPositionPreference::Zero)
ParameterTypeDescription
streamstd::basic_iostream<char_type, traits_type>&std::basic_iostream-like stream
modeSTDIOStreamWrappingModeWrapping mode
pref_posSTDIOStreamPositionPreferencePosition that will prefer as read and write position, if they are different

ReturnValue

BasicSTDIOStreamWrapper wrapper

See Also