MCPcopy Create free account
hub / github.com/containerd/nerdctl / Size

Method Size

pkg/containerdutil/content.go:76–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func (rac *readerAtWithCache) Size() int64 {
77 // local implementation in containerd technically provides a similar mechanism, so, this method not really useful
78 // by default - but obviously, this is implementation dependent
79 if rac.size == -1 {
80 rac.size = rac.ReaderAt.Size()
81 }
82 return rac.size
83}
84
85func (rac *readerAtWithCache) Close() error {
86 err := rac.ReaderAt.Close()

Callers 12

HandleConsoleResizeFunction · 0.80
HandleConsoleResizeFunction · 0.80
FromArchiveFunction · 0.80
GroupSizeMethod · 0.80
internalCopyFunction · 0.80
nextSubnetFunction · 0.80
LastIPInSubnetFunction · 0.80
FirstIPInSubnetFunction · 0.80
generateExecProcessSpecFunction · 0.80

Calls

no outgoing calls