Parcourir la source

[2572] clarified that istream source must be complete on pushSource.

JINMEI Tatuya il y a 12 ans
Parent
commit
f603440ab4
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/lib/dns/master_lexer.h

+ 4 - 0
src/lib/dns/master_lexer.h

@@ -387,6 +387,10 @@ public:
     /// The caller can explicitly tell \c MasterLexer to stop using the
     /// stream by calling the \c popSource() method.
     ///
+    /// The data in \c input must be complete at the time of this call.
+    /// The behavior of the lexer is undefined if the caller builds or adds
+    /// data in \c input after pushing it.
+    ///
     /// \param input An input stream object that produces textual
     /// representation of DNS RRs.
     void pushSource(std::istream& input);