MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / GetVSize

Method GetVSize

Libraries/unrar/rawread.cpp:132–138  ·  view source on GitHub ↗

Return a number of bytes in current variable length integer.

Source from the content-addressed store, hash-verified

130
131// Return a number of bytes in current variable length integer.
132uint RawRead::GetVSize(size_t Pos)
133{
134 for (size_t CurPos=Pos;CurPos<DataSize;CurPos++)
135 if ((Data[CurPos] & 0x80)==0)
136 return int(CurPos-Pos+1);
137 return 0; // Buffer overflow.
138}
139
140
141size_t RawRead::GetB(void *Field,size_t Size)

Callers 2

ReadHeader50Method · 0.80
ReadRawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected