The following functions write numeric vales to a CFILE. All values are stored to the file in Intel (little-endian) format. All these throw an exception if there's an error on write. Write an integer (32 bits) Throws an exception of type (cfile_error *) if the OS returns an error on write
| 791 | // Write an integer (32 bits) |
| 792 | // Throws an exception of type (cfile_error *) if the OS returns an error on write |
| 793 | void cf_WriteInt(CFILE *cfp, int32_t i) { |
| 794 | int t = INTEL_INT(i); |
| 795 | cf_WriteBytes((uint8_t *)&t, sizeof(t), cfp); |
| 796 | } |
| 797 | |
| 798 | // Write a int16_t (16 bits) |
| 799 | // Throws an exception of type (cfile_error *) if the OS returns an error on write |
no test coverage detected