Skip to content

Get/Check type of attribute #238

@Flamefire

Description

@Flamefire

Is there currently any way to check the type of an attribute?
I currently see only the interface readAttribute(int32_t id, const char *dataName, const char *attrName, void* data) which completely ignores the type. So reading a double when a float was expected leads to buffer overflows. Even worse for unexpected array attributes.

Especially for multidimensional values this is a problem. You cannot read a value, that may have multiple dimensions as you don't know how many values are in the HDF5 file.

ccing @slizzered @ax3l

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions