Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding bigendian support#11

Open
octo47 wants to merge 1 commit into
andyleap:master from
octo47:pr-bigendian-support
Open

Adding bigendian support #11
octo47 wants to merge 1 commit into
andyleap:master from
octo47:pr-bigendian-support

Conversation

@octo47

@octo47 octo47 commented Oct 12, 2016

Copy link
Copy Markdown

currently ints and floats encoded in little endian.
in some cases it is preferred to have bigendian (for example for encoding keys for leveldb like databases).

here is a small patch that adds flag to generate bigendian encoding.

Copy link
Copy Markdown
Owner

I can see the usefulness of this, but my issue is that it makes it an all or nothing thing. Either the whole schema is bigendian, or none of it is. I'd rather add additional types for bigendian, or some kind of modifier similar to the "framed" modifier for structs, so that it can be enabled on a "as needed" basis

octo47 commented Oct 27, 2016

Copy link
Copy Markdown
Author

yeah, sounds good.
will take a look on how that can be done.

thanks.

Copy link
Copy Markdown

FYI I ported @octo47's BigEndian support PR to be more easily accessible at https://github.com/sylvainr/gencode-bigendian.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /