int decode(FILE *fd, char *buffer);