Skip to content

Empty resources #5

Description

@andrews05

I'm sure there's a good reason for writing it this way but this code is currently causing problems when loading zero-length resources. (The resource ends up being the size of the entire file)

autographite::data::data::size() const -> std::size_t
{
if (m_size > 0) {
return m_size;
}
elseif (m_data != nullptr) {
return m_data->size();
}
else {
return0;
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions