H5D(O) [read/write]_chunk incorrect function arguments?

Open
#170 1 comment 0 reactions 1 assignee View on GitHub

@gheber is already working on this.

Since Oct 28, 2020.

Assessment

This issue has not been assessed yet.

Description

bug

Hi there, I've been attempting to use the H5D.write/read_chunk methods, but the parameter "offset" is declared as "ref hsize_t offset".
The official documentation for the C lib states that this variable should be referencing an array, so clearly there is an issue here. It works fine for dataspaces of rank 1, but obviously wont work when attempting to specify the offset in a multidimensional dataspace. In my local version I changed the arguement to "[In][Out] hsize_t[] offset" and it now works as expected. Thought it might be worth mentioning!
This was also for HDF5_VER1_10. Many thanks.

Dominant language
C#
Stars
87
Forks
32
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HDFGroup/HDF.PInvoke

All issues in HDFGroup/HDF.PInvoke

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.