Skip to content

decoder: always return NANOCBOR_OK instead of bytes read#97

Open
mguetschow wants to merge 1 commit into
bergzand:masterfrom
mguetschow:return-ok
Open

decoder: always return NANOCBOR_OK instead of bytes read#97
mguetschow wants to merge 1 commit into
bergzand:masterfrom
mguetschow:return-ok

Conversation

@mguetschow

Copy link
Copy Markdown
Collaborator

For now, number of bytes read are returned for all number-related functions, but not for containers, tags and strings. This PR unifies the behavior across all user-facing functions.

This is an API breaking change. However, we did not come up with a good reason why users of NanoCBOR would be interested in the number of bytes read, especially if they only get this information for part of the API.

Follow-up of #90

For now, number of bytes read are returned for all number-related functions, but not for containers, tags and strings.

This is an API breaking change. However, we did not come up with a good reason why users of NanoCBOR would be interested in the number of bytes read, especially if they only get this information for part of the API.
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.

1 participant