Changeset d145ecb in mainline for uspace/lib/riff/src/chunk.c
- Timestamp:
- 2020-09-21T14:02:42Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aaf962e6
- Parents:
- 003c413
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/riff/src/chunk.c
r003c413 rd145ecb 152 152 153 153 cksize = pos - wchunk->ckstart; 154 if (pos % 2 != 0) 155 ++pos; 154 156 155 157 if (fseek(rw->f, wchunk->ckstart - 4, SEEK_SET) < 0) … … 176 178 * @return EOK on success, EIO on error. 177 179 */ 178 errno_t riff_w chunk_write(riffw_t *rw, void *data, size_t bytes)180 errno_t riff_write(riffw_t *rw, void *data, size_t bytes) 179 181 { 180 182 size_t nw; … … 281 283 return rc; 282 284 285 if (nread != sizeof(vle)) 286 return ELIMIT; 287 283 288 *v = uint32_t_le2host(vle); 284 289 return EOK; … … 315 320 error: 316 321 return rc; 322 } 323 324 /** Return chunk data size. 325 * 326 * @param rchunk RIFF chunk 327 * @return Pure data size (excluding type+size header) in bytes 328 */ 329 uint32_t riff_rchunk_size(riff_rchunk_t *rchunk) 330 { 331 return rchunk->cksize; 317 332 } 318 333
Note:
See TracChangeset
for help on using the changeset viewer.