Return a number of bytes in current variable length integer.
| 130 | |
| 131 | // Return a number of bytes in current variable length integer. |
| 132 | uint 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 | |
| 141 | size_t RawRead::GetB(void *Field,size_t Size) |
no outgoing calls
no test coverage detected