Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::basic_streambuf<CharT,Traits>::in_avail

      From cppreference.com
      <cpp‎ |io‎ |basic streambuf
       
       
       
      std::basic_streambuf
       
      std::streamsize in_avail();

      Returns the number of characters available in the get area. If a read position is available, effectively returnsegptr()- gptr(), the size of the get area. In this case, the number of bytes returned is the number of bytes that can be extracted from the buffer without callingunderflow().

      If the get area is empty, callsshowmanyc() to determine the number of bytes available in the associated character sequence. In this case, the value returned is the number of bytes that can be extracted from the buffer while it's guaranteed thatunderflow() would not returnTraits::eof.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      The number of characters available for non-blocking read (either the size of the get area or the number of characters ready for reading from the associated character sequence), or-1 if no characters are available in the associated sequence as far asshowmanyc() can tell.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      [virtual]
      optionally provides the number of characters available for input from the file
      (virtual protected member function ofstd::basic_filebuf<CharT,Traits>)[edit]
      extracts already available blocks of characters
      (public member function ofstd::basic_istream<CharT,Traits>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_streambuf/in_avail&oldid=64242"

      [8]ページ先頭

      ©2009-2025 Movatter.jp