Fix buffer cursor position
Fix length dispatch conditions
decodeString
Removed debug log messages
Add test cases
Encode Boolean