MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / CopyBuffers

Method CopyBuffers

libcppcryptfs/util/KeyCache.h:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 BYTE* ptr;
39 size_t len;
40 static void CopyBuffers(const vector<KeyBuf>& kbv, const BYTE* ptr, size_t len)
41 {
42 // Must be locked when called if ptr is from cache
43
44 size_t offset = 0;
45 for (size_t i = 0; i < kbv.size(); i++) {
46 memcpy(kbv[i].ptr, ptr + offset, kbv[i].len);
47 offset += kbv[i].len;
48 }
49 }
50};
51
52struct KeyCacheEntry {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected