Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bes 97 #8

Merged
merged 8 commits into from
Feb 2, 2016
Merged

Bes 97 #8

merged 8 commits into from
Feb 2, 2016

Conversation

jgallagher59701
Copy link
Member

Fixes for zero-length arrays. This supports handlers (format reading handlers like netcdf_handler and transmitters like asciival) working with arrays that have no elements. An odd convention, but one that seems prevalent int he ugrid world.

This needs to be merged to the master branch before I can issue a pull request for the BES (and that will need a merge before I can issue a pull request for the various affected handlers).

Because of the chain of dependencies, I'm going to merge this later today unless I hear that its a bad set of changes.

I have implemented and tested zero-length arrays of the
cardinal types for DAP2 and 4. There's more to be done and
no testing outside of libdap has been done.
val2buf() was throwing an InternalErr when called with a null data
pointer. I modified it so that if the pointer is null and the length()
of the vector/array is zero, it returns zero. The exception is still
thrown if the pointer is null and the length() is not zero.
@ndp-opendap
Copy link
Contributor

:shipit: baby, :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants