MCPcopy Create free account
hub / github.com/rsc/tmp / memOpen

Function memOpen

mpt/disk.go:179–221  ·  view source on GitHub ↗

memOpen is the general implementation of open. op is "create", "open", or "new", indicating the operation being performed on the files; sync indicates whether to try to use the files' Sync method. (When using /dev/null for an in-memory tree, we avoid calling Sync, because it will fail.)

(file1, file2, disk File, op string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

openFunction · 0.85
NewFunction · 0.85

Calls 7

mutateMethod · 0.95
emptyTreeHashFunction · 0.85
DataMethod · 0.80
SyncMethod · 0.65
ReleaseMethod · 0.45
UnsafeUnmapMethod · 0.45
ExpandMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…