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)
参数类型描述
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)
参数类型描述
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)
参数类型描述
std::basic_ostream<char_type, traits_type>&类似 std::basic_ostream 的流
modeSTDIOStreamWrappingMode包装模式

ReturnValue

BasicSTDOStreamWrapper wrapper

另见