System::IO::WrapSTDIOStream 方法

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

用于 std::basic_iostream 类似流的包装函数。

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)
ParameterType描述
std::basic_iostream<char_type, traits_type>&std::basic_iostream 类似流
modeSTDIOStreamWrappingMode包装模式
pref_posSTDIOStreamPositionPreference如果读写位置不同,则首选的读取和写入位置

ReturnValue

BasicSTDIOStreamWrapper wrapper

另见

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

用于 std::basic_istream 类似流的包装函数。

template<typename char_type,typename traits_type> SharedPtr<Stream> System::IO::WrapSTDIOStream(std::basic_istream<char_type, traits_type> &stream, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary)
ParameterType描述
std::basic_istream<char_type, traits_type>&std::basic_istream 类似流
modeSTDIOStreamWrappingMode包装模式

ReturnValue

BasicSTDIStreamWrapper wrapper

另见

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

用于 std::basic_ostream 类似流的包装函数。

template<typename char_type,typename traits_type> SharedPtr<Stream> System::IO::WrapSTDIOStream(std::basic_ostream<char_type, traits_type> &stream, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary)
ParameterType描述
std::basic_ostream<char_type, traits_type>&std::basic_ostream 类似流
modeSTDIOStreamWrappingMode包装模式

ReturnValue

BasicSTDOStreamWrapper wrapper

另见