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

Method CopyString

Libraries/unrar/unpack50frag.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77void FragmentedWindow::CopyString(uint Length,uint Distance,size_t &UnpPtr,size_t MaxWinMask)
78{
79 size_t SrcPtr=UnpPtr-Distance;
80 while (Length-- > 0)
81 {
82 (*this)[UnpPtr]=(*this)[SrcPtr++ & MaxWinMask];
83 // We need to have masked UnpPtr after quit from loop, so it must not
84 // be replaced with '(*this)[UnpPtr++ & MaxWinMask]'
85 UnpPtr=(UnpPtr+1) & MaxWinMask;
86 }
87}
88
89
90void FragmentedWindow::CopyData(byte *Dest,size_t WinPos,size_t Size)

Callers 1

Unpack5Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected