Skip to content

Why doesn't kstream::close() close the underlying std::istream? #49

@generalmimon

Description

@generalmimon

@GreyCat Is there a reason m_io->close() is commented out here?

void kaitai::kstream::close() {
// m_io->close();
}

This "implementation" comes from the initial commit in 2016 when the C++/STL runtime was started (8d533f3:kaitai/kaitaistream.cpp:8), so perhaps it was disabled just for debugging reasons during the initial testing, but I don't see any reason why kstream::close() should be a no-op - makes no sense to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions