Skip to content

Implement double far pointer support. #8

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

quark-tekliner
Copy link
Contributor

Probably i should add some tests for far pointers. I test it for my own serialized data obtained from native c++ app and i dunno proper way to implement the tests, maybe i should put binary blob with serialized data and use it in tests.

function _M.read_far_pointer(buf, header, parser)
local p = buf
local is_double, offset, seg_id = _M.parse_far_pointer(p)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parse_far_pointer should be a local function instead of a module function.

@calio
Copy link
Owner

calio commented Sep 1, 2015

Could you also add a few tests for this?

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.

2 participants