MCPcopy Create free account
hub / github.com/facebook/time / FromFile

Function FromFile

phc/device.go:35–35  ·  view source on GitHub ↗

FromFile returns a *Device corresponding to an *os.File

(file *os.File)

Source from the content-addressed store, hash-verified

33
34// FromFile returns a *Device corresponding to an *os.File
35func FromFile(file *os.File) *Device { return (*Device)(file) }
36
37// File returns the underlying *os.File
38func (dev *Device) File() *os.File { return (*os.File)(dev) }

Callers 13

phcdiffRunFunction · 0.92
phc2phcRunFunction · 0.92
getPPSSourceFromPathFunction · 0.92
phcDeviceFromNameFunction · 0.92
setPHCFunction · 0.92
stepPHCFunction · 0.92
tunePHCFunction · 0.92
printPHCFunction · 0.92
NewPHCFunction · 0.92
NewFunction · 0.92
TimeAndOffsetFromDeviceFunction · 0.85
OffsetBetweenDevicesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…