This doesn't seem to line up with what's being done in the line above...
1<<12 is 4096 and 224 != 234 :)
Maybe a simple function to help test & sanity check the encoding?