|
libbluray
|
File access. More...
Data Fields | |
| void * | internal |
| Reserved for BD_FILE_H implementation use. | |
| void(* | close )(BD_FILE_H *file) |
| Close file. | |
| int64_t(* | seek )(BD_FILE_H *file, int64_t offset, int32_t origin) |
| Reposition file offset. | |
| int64_t(* | tell )(BD_FILE_H *file) |
| Get current read or write position. | |
| int(* | eof )(BD_FILE_H *file) |
| Check for end of file. | |
| int64_t(* | read )(BD_FILE_H *file, uint8_t *buf, int64_t size) |
| Read from file. | |
| int64_t(* | write )(BD_FILE_H *file, const uint8_t *buf, int64_t size) |
| Write to file. | |
File access.
| void(* BD_FILE_H::close) (BD_FILE_H *file) |
Close file.
| file | BD_FILE_H object |
| int(* BD_FILE_H::eof) (BD_FILE_H *file) |
Check for end of file.
| file | BD_FILE_H object |
| void* BD_FILE_H::internal |
Reserved for BD_FILE_H implementation use.
Implementation can store here ex. file handle, FILE*, ...
| int64_t(* BD_FILE_H::read) (BD_FILE_H *file, uint8_t *buf, int64_t size) |
Read from file.
| file | BD_FILE_H object |
| buf | buffer where to store the data |
| size | bytes to read |
| int64_t(* BD_FILE_H::seek) (BD_FILE_H *file, int64_t offset, int32_t origin) |
Reposition file offset.
| file | BD_FILE_H object |
| offset | byte offset |
| origin | SEEK_SET, SEEK_CUR or SEEK_END |
| int64_t(* BD_FILE_H::tell) (BD_FILE_H *file) |
Get current read or write position.
| file | BD_FILE_H object |
| int64_t(* BD_FILE_H::write) (BD_FILE_H *file, const uint8_t *buf, int64_t size) |
Write to file.
Writing 0 bytes can be used to flush previous writes and check for errors.
| file | BD_FILE_H object |
| buf | data to be written |
| size | bytes to write |