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

Method GetB

Libraries/unrar/rawread.cpp:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140
141size_t RawRead::GetB(void *Field,size_t Size)
142{
143 byte *F=(byte *)Field;
144 size_t CopySize=Min(DataSize-ReadPos,Size);
145 if (CopySize>0)
146 memcpy(F,&Data[ReadPos],CopySize);
147 if (Size>CopySize)
148 memset(F+CopySize,0,Size-CopySize);
149 ReadPos+=CopySize;
150 return CopySize;
151}
152
153
154void RawRead::GetW(wchar *Field,size_t Size)

Callers 5

ReadHeader15Method · 0.80
ReadHeader50Method · 0.80
ProcessExtra50Method · 0.80
ReadHeader14Method · 0.80
ReadNextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected