OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ExtentsFile
(Results
1 - 4
of
4
) sorted by null
/external/bsdiff/
extents_file.cc
20
ExtentsFile
::
ExtentsFile
(std::unique_ptr<FileInterface> file,
30
ExtentsFile
::~
ExtentsFile
() {
34
bool
ExtentsFile
::Read(void* buf, size_t count, size_t* bytes_read) {
39
bool
ExtentsFile
::Write(const void* buf, size_t count, size_t* bytes_written) {
43
bool
ExtentsFile
::Seek(off_t pos) {
61
bool
ExtentsFile
::Close() {
65
bool
ExtentsFile
::GetSize(uint64_t* size) {
70
void
ExtentsFile
::AdvancePos(uint64_t size)
[
all
...]
extents_file.h
40
class
ExtentsFile
: public FileInterface {
42
// Creates an
ExtentsFile
based on the underlying |file| passed. The positions
43
// in the
ExtentsFile
will be linearly mapped to the extents provided in
44
// |extents|. The created
ExtentsFile
takes ownership of the |file| will close
46
ExtentsFile
(std::unique_ptr<FileInterface> file,
49
~
ExtentsFile
() override;
extents_file_unittest.cc
51
// The destructor of the
ExtentsFile
will call Close once.
55
// Pointer to the underlying File owned by the
ExtentsFile
under test. This
56
// pointer is invalidated whenever the
ExtentsFile
is destroyed.
62
ExtentsFile
file(std::move(mock_file_ptr_), {});
66
ExtentsFile
file(std::move(mock_file_ptr_), {});
72
ExtentsFile
file(std::move(mock_file_ptr_),
80
ExtentsFile
file(std::move(mock_file_ptr_),
111
ExtentsFile
file(std::move(mock_file_ptr_),
132
ExtentsFile
file(std::move(mock_file_ptr_),
158
ExtentsFile
file(std::move(mock_file_ptr_), {ex_t{10, 1}, ex_t{20, 10}})
[
all
...]
bspatch.cc
234
old_file.reset(new
ExtentsFile
(std::move(old_file), parsed_old_extents));
252
new_file.reset(new
ExtentsFile
(std::move(new_file), parsed_new_extents));
Completed in 67 milliseconds