|
BusBoy
2
|
#include <ExternalRandomAccessFile.h>
Public Member Functions | |
| ExternalRandomAccessFile (const CExternalRandomAccessFileCallbacks &callbacks) | |
| size_t | read (char *buf, size_t num) |
| Read up to the next num bytes into buf, returns the number of bytes read. More... | |
| size_t | getLocation () |
| Returns the absolute location of the file pointer, in bytes. More... | |
| void | setLocation (size_t loc) |
| Set absolute location from file start. More... | |
| void | setLocationFromEnd (size_t loc) |
| Set location in bytes back from end of file. More... | |
| void | skipForward (size_t num) |
| Skip num bytes forward from current location. More... | |
| void | skipBackward (size_t num) |
| Skip num bytes backward from current location. More... | |
| size_t | getFileSize () |
| void | close () |
| bool | isClosed () const |
| ~ExternalRandomAccessFile () | |
Protected Member Functions | |
| void | assertNotClosed () const |
| std::unique_lock< std::mutex > | getLock () |
| const CExternalRandomAccessFileCallbacks & | getCallbacks () const |
| BUSBOY::ExternalRandomAccessFile::ExternalRandomAccessFile | ( | const CExternalRandomAccessFileCallbacks & | callbacks | ) |
| BUSBOY::ExternalRandomAccessFile::~ExternalRandomAccessFile | ( | ) |
|
protected |
|
virtual |
Implements BUSBOY::RandomAccessFile.
|
protected |
|
virtual |
Implements BUSBOY::RandomAccessFile.
|
virtual |
Returns the absolute location of the file pointer, in bytes.
Implements BUSBOY::RandomAccessFile.
|
protected |
|
virtual |
Implements BUSBOY::RandomAccessFile.
|
virtual |
Read up to the next num bytes into buf, returns the number of bytes read.
Implements BUSBOY::RandomAccessFile.
|
virtual |
Set absolute location from file start.
Implements BUSBOY::RandomAccessFile.
|
virtual |
Set location in bytes back from end of file.
Implements BUSBOY::RandomAccessFile.
|
virtual |
Skip num bytes backward from current location.
Implements BUSBOY::RandomAccessFile.
|
virtual |
Skip num bytes forward from current location.
Implements BUSBOY::RandomAccessFile.
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.