45 return OpenNextFile();
52 if (!TakeNextFileName())
return false;
54 if (!fFile.OpenRead(CurrentFileName().c_str())) {
55 EOUT(
"Cannot open file %s for reading", CurrentFileName().c_str());
59 DOUT1(
"Open hld file %s for reading", CurrentFileName().c_str());
68 ClearCurrentFileName();
85 EOUT(
"EOF should not happen when buffer reading should be started");
90 uint32_t bufsize = ((uint32_t) (buf.
SegmentSize(0) * fReduce) / 4) * 4;
92 if (!fFile.ReadBuffer(buf.
SegmentPtr(0), &bufsize)) {
101 DOUT3(
"HLD file read %u bytes from %s file", (
unsigned) bufsize, CurrentFileName().c_str());
void SetIO(FileInterface *_io, bool _ioowner=false)
Reference on memory from memory pool.
unsigned SegmentSize(unsigned n=0) const
Returns size on the segment, no any boundary checks.
void SetTotalSize(BufferSize_t len)
Set total length of the buffer to specified value Size cannot be bigger than original size of the buf...
void SetTypeId(unsigned tid)
void * SegmentPtr(unsigned n=0) const
Returns pointer on the segment, no any boundary checks.
Represents command with its arguments.
Defines and implements basic POSIX file interface.
Uniform Resource Locator interpreter.
bool HasOption(const std::string &optname) const
Reference on dabc::Worker