Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

hmm, it's very interesting, but where can I find decoder's code?


Instead of their encoder's

    encodedValue = encodedValue | ((nextField & fieldMask) << shiftStep)
you would do the reverse:

    decodedField = (encodedValue >> shiftStep) & fieldMask




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: