MCPcopy Create free account
hub / github.com/microsoft/typescript-go / newDiskFile

Function newDiskFile

internal/project/overlayfs.go:77–85  ·  view source on GitHub ↗
(fileName string, content string)

Source from the content-addressed store, hash-verified

75}
76
77func newDiskFile(fileName string, content string) *diskFile {
78 return &diskFile{
79 fileBase: fileBase{
80 fileName: fileName,
81 content: content,
82 hash: xxh3.HashString128(content),
83 },
84 }
85}
86
87var _ FileHandle = (*diskFile)(nil)
88

Callers 6

GetFileByPathMethod · 0.85
getFileMethod · 0.85
TestSnapshotFSBuilderFunction · 0.85
TestSnapshotFSFunction · 0.85
GetFileByPathMethod · 0.85

Calls

no outgoing calls

Tested by 3

TestSnapshotFSBuilderFunction · 0.68
TestSnapshotFSFunction · 0.68