Add WriterLcf::Tell()
MODIFY
src/writer_lcf.cpp
src/writer_lcf.cpp
@@ -116,6 +116,10 @@ void LcfWriter::Write(const std::string& _str) {
}
}
+uint32_t LcfWriter::Tell() {
+ return (uint32_t)stream.tellp();
+}
+
bool LcfWriter::IsOk() const {
return (stream.good());
}

MODIFY
src/writer_lcf.h
src/writer_lcf.h
@@ -79,6 +79,14 @@ public:
template <class T>
void Write(const std::vector<T>& buffer);
+ /**
+ * Returns the current position of the read pointer in
+ * the stream.
+ *
+ * @return current location in the stream.
+ */
+ uint32_t Tell();
+
/**
* Checks if the file is writable and if no error occurred.
*

Add WriterLcf::Tell()