Files
steamcache2/vfs/cachestate/cachestate.go
2025-01-22 17:49:22 -06:00

25 lines
376 B
Go

package cachestate
import "s1d3sw1ped/SteamCache2/vfs/vfserror"
type CacheState int
const (
CacheStateHit CacheState = iota
CacheStateMiss
CacheStateNotFound
)
func (c CacheState) String() string {
switch c {
case CacheStateHit:
return "hit"
case CacheStateMiss:
return "miss"
case CacheStateNotFound:
return "not found"
}
panic(vfserror.ErrUnreachable)
}