search for: dataupdate

Displaying 1 result from an estimated 1 matches for "dataupdate".

Did you mean: datadate
2011 Aug 11
1
Memory leak
...program demonstrating this is pasted here: $ cat main.cc #include <cstdlib> #include <string> #include <iostream> #include <FLAC++/encoder.h> class FlacWriter : public FLAC::Encoder::File { public: inline bool dataStart(std::string const &filename); inline bool dataUpdate(char const *const data, int len); inline bool dataFinish(); }; inline bool FlacWriter::dataStart(std::string const &filename) { if (set_verify(true) && init(filename) == FLAC__STREAM_ENCODER_INIT_STATUS_OK) return true; return false; } inline bool FlacWriter::dataUpdate(char...