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

Function RARReadHeader

Libraries/unrar/dll.cpp:184–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182
183
184int PASCAL RARReadHeader(HANDLE hArcData,struct RARHeaderData *D)
185{
186 struct RARHeaderDataEx X;
187 memset(&X,0,sizeof(X));
188
189 int Code=RARReadHeaderEx(hArcData,&X);
190
191 strncpyz(D->ArcName,X.ArcName,ASIZE(D->ArcName));
192 strncpyz(D->FileName,X.FileName,ASIZE(D->FileName));
193 D->Flags=X.Flags;
194 D->PackSize=X.PackSize;
195 D->UnpSize=X.UnpSize;
196 D->HostOS=X.HostOS;
197 D->FileCRC=X.FileCRC;
198 D->FileTime=X.FileTime;
199 D->UnpVer=X.UnpVer;
200 D->Method=X.Method;
201 D->FileAttr=X.FileAttr;
202 D->CmtSize=0;
203 D->CmtState=0;
204
205 return Code;
206}
207
208
209int PASCAL RARReadHeaderEx(HANDLE hArcData,struct RARHeaderDataEx *D)

Callers

nothing calls this directly

Calls 2

RARReadHeaderExFunction · 0.85
strncpyzFunction · 0.85

Tested by

no test coverage detected