\return the position in the stream for a given frame
\note return -1 if the position doesn't exist
*/
- std::int64_t GetDataPosition(size_t FrameNumber = 0);
+ std::int64_t GetDataPosition(std::size_t FrameNumber = 0);
/*!
\param FrameNumber 0 for the first frame
\return the size of a given frame
\note return -1 if the position doesn't exist
*/
- std::int64_t GetFrameSize(size_t FrameNumber = 0);
+ std::int64_t GetFrameSize(std::size_t FrameNumber = 0);
bool IsInvisible() const { return mInvisible; }
}
/*Track *FileMatroska::findTrack(Track * aTrack) const {
- for (size_t i=0; i<myTracks.size(); i++) {
+ for (std::size_t i=0; i<myTracks.size(); i++) {
if (myTracks[i] == aTrack)
return myTracks[i];
}
}
const auto BufferEnd = BufferStart + GetSize();
- const size_t NumFrames = myBuffers.size();
+ const std::size_t NumFrames = myBuffers.size();
// Sanity checks for frame pointers and boundaries.
- for (size_t Index = 0; Index < NumFrames; ++Index) {
+ for (std::size_t Index = 0; Index < NumFrames; ++Index) {
const auto FrameStart = myBuffers[Index]->Buffer();
const auto FrameEnd = FrameStart + myBuffers[Index]->Size();
const auto ExpectedEnd = (Index + 1) < NumFrames ? myBuffers[Index + 1]->Buffer() : BufferEnd;
}
}
-std::int64_t KaxInternalBlock::GetDataPosition(size_t FrameNumber)
+std::int64_t KaxInternalBlock::GetDataPosition(std::size_t FrameNumber)
{
std::int64_t _Result = -1;
if (ValueIsSet() && FrameNumber < SizeList.size()) {
_Result = FirstFrameLocation;
- size_t _Idx = 0;
+ std::size_t _Idx = 0;
while(FrameNumber--) {
_Result += SizeList[_Idx++];
}
return _Result;
}
-std::int64_t KaxInternalBlock::GetFrameSize(size_t FrameNumber)
+std::int64_t KaxInternalBlock::GetFrameSize(std::size_t FrameNumber)
{
std::int64_t _Result = -1;
filepos_t KaxCluster::Render(IOCallback & output, KaxCues & CueToUpdate, bool bSaveDefault)
{
filepos_t Result = 0;
- size_t Index;
+ std::size_t Index;
// update the Timecode of the Cluster before writing
auto Timecode = static_cast<KaxClusterTimecode *>(this->FindElt(EBML_INFO(KaxClusterTimecode)));