Implement decoder and encoder without error handling