MCPcopy Create free account
hub / github.com/VKCOM/nocc / AddHFileInfo

Method AddHFileInfo

internal/client/includes-cache.go:65–69  ·  view source on GitHub ↗
(hFileName string, fileSize int64, fileSHA256 common.SHA256, nestedIncludes []string)

Source from the content-addressed store, hash-verified

63}
64
65func (incCache *IncludesCache) AddHFileInfo(hFileName string, fileSize int64, fileSHA256 common.SHA256, nestedIncludes []string) {
66 incCache.mu.Lock()
67 incCache.hFilesInfo[hFileName] = &includeCachedHFile{fileSize, fileSHA256, nestedIncludes}
68 incCache.mu.Unlock()
69}
70
71func (incCache *IncludesCache) Count() int {
72 incCache.mu.RLock()

Callers 3

HandleInvocationMethod · 0.80
LocateOwnPchFileFunction · 0.80
processHFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected