defined the decode state structure and started work on the stateles fdecode
xorncpy can now copy nul bytes