MCPcopy Create free account
hub / github.com/brimdata/super / load

Method load

runtime/vcache/float.go:36–48  ·  view source on GitHub ↗
(loader *loader)

Source from the content-addressed store, hash-verified

34}
35
36func (f *float) load(loader *loader) []float64 {
37 f.mu.Lock()
38 defer f.mu.Unlock()
39 if f.vals != nil {
40 return f.vals
41 }
42 bytes := make([]byte, f.meta.Location.MemLength)
43 if err := f.meta.Location.Read(loader.r, bytes); err != nil {
44 panic(err)
45 }
46 f.vals = byteconv.ReinterpretSlice[float64](bytes)
47 return f.vals
48}

Callers 1

projectMethod · 0.95

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected