79 size_t Amt,
size_t* pAmtRead)
99 if (SegOffset <=
Offset && Offset < SegOffset + pCurrSeg->GetSize())
101 size_t OffsetIntoSeg =
Offset - SegOffset;
103 size_t AmtThisSeg = std::min(Amt, pCurrSeg->
GetSize() -
107 size_t AmtReadThisSeg;
111 OffsetIntoSeg, AmtThisSeg);
112 AmtReadThisSeg = AmtThisSeg;
118 pContainer->
Read(pBuffer, AmtThisSeg, &AmtReadThisSeg);
121 *pAmtRead += AmtReadThisSeg;
123 if (AmtThisSeg != AmtReadThisSeg)
126 pBuffer += AmtReadThisSeg;
128 Amt -= AmtReadThisSeg;
131 SegOffset += pCurrSeg->
GetSize();
LtcBenContainer * GetContainer()
BenByte * GetImmediateData()
BenContainerPos GetPosition() const
CBenProperty *BEN_EXPORT GetProperty()
void ReadValueData(void *pBuffer, size_t Offset, size_t MaxSize, size_t *pAmtRead)
CBenValueSegment * GetNextValueSegment(CBenValueSegment const *pCurrValueSegment)
void SeekToPosition(BenContainerPos Pos)
Seek to position from the beginning of the bento file.
void Read(void *pBuffer, size_t MaxSize, size_t *pAmtRead)
Read buffer for bento file with specified buffer.