CernVM-FS
2.12.0
|
#include <chunk_detector.h>
Public Member Functions | |
ChunkDetector () | |
virtual | ~ChunkDetector () |
uint64_t | FindNextCutMark (BlockItem *block) |
virtual bool | MightFindChunks (uint64_t size) const =0 |
Protected Member Functions | |
virtual uint64_t | DoFindNextCutMark (BlockItem *block)=0 |
virtual uint64_t | DoCut (uint64_t offset) |
virtual uint64_t | NoCut (uint64_t) |
uint64_t | last_cut () const |
uint64_t | offset () const |
Private Attributes | |
uint64_t | last_cut_ |
uint64_t | offset_ |
Abstract base class for a cutmark detector. This decides on which file positions a File should be chunked.
Definition at line 21 of file chunk_detector.h.
|
inline |
Definition at line 23 of file chunk_detector.h.
|
inlinevirtual |
Definition at line 24 of file chunk_detector.h.
|
inlineprotectedvirtual |
When returning from an implemented FindNextCutMark call you must call this function when a cut mark has been found. Like: return DoCut(found_offset)
Reimplemented in Xor32Detector.
Definition at line 37 of file chunk_detector.h.
Referenced by Xor32Detector::DoCut(), and StaticOffsetDetector::DoFindNextCutMark().
|
protectedpure virtual |
Implemented in Xor32Detector, and StaticOffsetDetector.
Referenced by FindNextCutMark().
uint64_t ChunkDetector::FindNextCutMark | ( | BlockItem * | block | ) |
This file is part of the CernVM File System.
Definition at line 15 of file chunk_detector.cc.
Referenced by TaskChunk::Process().
|
inlineprotected |
Definition at line 48 of file chunk_detector.h.
Referenced by StaticOffsetDetector::DoFindNextCutMark(), and Xor32Detector::DoFindNextCutMark().
|
pure virtual |
Implemented in Xor32Detector, and StaticOffsetDetector.
|
inlineprotectedvirtual |
Same as DoCut() but if no cut mark has been found in the given buffer in FindNextCutMark()
Reimplemented in Xor32Detector.
Definition at line 46 of file chunk_detector.h.
Referenced by StaticOffsetDetector::DoFindNextCutMark(), and Xor32Detector::NoCut().
|
inlineprotected |
Definition at line 49 of file chunk_detector.h.
Referenced by DoCut(), Xor32Detector::DoCut(), StaticOffsetDetector::DoFindNextCutMark(), Xor32Detector::DoFindNextCutMark(), and Xor32Detector::NoCut().
|
private |
Definition at line 52 of file chunk_detector.h.
Referenced by DoCut(), and last_cut().
|
private |
Definition at line 53 of file chunk_detector.h.
Referenced by FindNextCutMark(), and offset().