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

Method SetMemory

Libraries/unrar/rarvm.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107
108void RarVM::SetMemory(size_t Pos,byte *Data,size_t DataSize)
109{
110 if (Pos<VM_MEMSIZE && Data!=Mem+Pos)
111 {
112 // We can have NULL Data for invalid filters with DataSize==0. While most
113 // sensible memmove implementations do not care about data if size is 0,
114 // let's follow the standard and check the size first.
115 size_t CopySize=Min(DataSize,VM_MEMSIZE-Pos);
116 if (CopySize!=0)
117 memmove(Mem+Pos,Data,CopySize);
118 }
119}
120
121
122bool RarVM::ExecuteStandardFilter(VM_StandardFilters FilterType)

Callers 1

UnpWriteBuf30Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected