Read and return a byte (8 bits) Throws an exception of type (cfile_error *) if the OS returns an error on read
| 691 | // Read and return a byte (8 bits) |
| 692 | // Throws an exception of type (cfile_error *) if the OS returns an error on read |
| 693 | int8_t cf_ReadByte(CFILE *cfp) { |
| 694 | int8_t i; |
| 695 | cf_ReadBytes((uint8_t *)&i, sizeof(i), cfp); |
| 696 | return i; |
| 697 | } |
| 698 | // Read and return a float (32 bits) |
| 699 | // Throws an exception of type (cfile_error *) if the OS returns an error on read |
| 700 | float cf_ReadFloat(CFILE *cfp) { |