| 371 | //------------------------------------------------------------------------------ |
| 372 | |
| 373 | bool Mp3AudioFileReader::getFileSize() |
| 374 | { |
| 375 | struct stat stat_buf; |
| 376 | |
| 377 | int descriptor = file_.getFileDescriptor(); |
| 378 | |
| 379 | if (descriptor == -1 || fstat(descriptor, &stat_buf) != 0) { |
| 380 | return false; |
| 381 | } |
| 382 | |
| 383 | file_size_ = stat_buf.st_size; |
| 384 | |
| 385 | return true; |
| 386 | } |
| 387 | |
| 388 | //------------------------------------------------------------------------------ |
| 389 |
nothing calls this directly
no test coverage detected