Home
last modified time | relevance | path

Searched refs:offset_ (Results 1 – 4 of 4) sorted by relevance

/thrift-3.4.0/lib/cpp/src/thrift/transport/
DTFileTransport.cpp90 offset_(0), in TFileTransport()
100 offset_ = offset; in resetOutputFile()
322 offset_ += readState_.lastDispatchPtr_; in writerThread()
323 if (0 == THRIFT_FTRUNCATE(fd_, offset_)) { in writerThread()
417 int64_t chunk1 = offset_ / chunkSize_; in writerThread()
418 int64_t chunk2 = (offset_ + outEvent->eventSize_ - 1) / chunkSize_; in writerThread()
423 offset_ = THRIFT_LSEEK(fd_, 0, SEEK_CUR); in writerThread()
424 auto padding = (int32_t)((offset_ / chunkSize_ + 1) * chunkSize_ - offset_); in writerThread()
437 offset_ += padding; in writerThread()
450 offset_ += outEvent->eventSize_; in writerThread()
[all …]
DTFileTransport.h366 off_t offset_; variable
/thrift-3.4.0/lib/d/src/thrift/transport/
Dfile.d175 return offset_ / chunkSize_; in getCurChunk()
212 offset_ = chunk * chunkSize_; in seekToChunk()
226 while ((offset_ + readState_.bufferPos_) < minEndOffset) { in seekToChunk()
361 offset_ += readState_.bufferLen_; in readEvent()
402 if ((offset_ + readState_.bufferPos_)/chunkSize_ != in readEvent()
403 ((offset_ + readState_.bufferPos_ + 3)/chunkSize_)) in readEvent()
478 } else if (((offset_ + readState_.bufferPos_ - EventSize.sizeof) / chunkSize_) != in isEventCorrupted()
479 ((offset_ + readState_.bufferPos_ + readState_.eventLen_ - EventSize.sizeof) / chunkSize_)) in isEventCorrupted()
484 (offset_ + readState_.bufferPos_ + EventSize.sizeof) in isEventCorrupted()
526 to!string(offset_ + readState_.lastDispatchPos_), in performRecovery()
[all …]
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/transport/
DTFileTransport.java107 private long offset_ = 0; field in TFileTransport.ChunkState
116 offset_ += size; in skip()
120 offset_ = offset; in seek()
128 return ((int) (offset_ / chunk_size_)); in getChunkNum()
132 return (chunk_size_ - ((int) (offset_ % chunk_size_))); in getRemaining()
136 return (offset_); in getOffset()