MCPcopy
hub / github.com/Velocidex/velociraptor / SizedValue

Interface SizedValue

third_party/cache/lru_cache.go:58–62  ·  view source on GitHub ↗

If a value has a Size() method we use this to determine its size, otherwise 1.

Source from the content-addressed store, hash-verified

56
57// If a value has a Size() method we use this to determine its size, otherwise 1.
58type SizedValue interface {
59 // Size returns how big this value is. If you want to just track
60 // the cache by number of objects, you may return the size as 1.
61 Size() int
62}
63
64type Closer interface {
65 Close()

Callers 6

GetattrMethod · 0.65
StatMethod · 0.65
SeekToTimeMethod · 0.65
NewMethod · 0.65
WriteBufferMethod · 0.65
valueSizeMethod · 0.65

Implementers 15

_Ciphercrypto/client/cipher.go
DirectoryLRUCachedatastore/memcache.go
DataLRUCachedatastore/memcache_data.go
MemcacheFileWriterfile_store/memcache/memcache.go
SizeWrapperfile_store/memory/compressed.go
MemoryWriterfile_store/memory/writer.go
SizeWrapperfile_store/directory/reader.go
DirectoryFileWriterfile_store/directory/writer.go
VirtualFileInfoaccessors/virtual.go
RegKeyInfoaccessors/registry/registry_windows.go
RegValueInfoaccessors/registry/registry_windows.go
SparseFileInfoaccessors/sparse/sparse.go

Calls

no outgoing calls

Tested by

no test coverage detected