Documentation
¶
Overview ¶
Package vdfbinary parses Valve's binary VDF format.
This is a vendored and modified version of github.com/TimDeve/valve-vdf-binary Licensed under MIT. See LICENSE file in this directory.
Package vdfbinary parses Valve's binary VDF format.
This is a vendored and modified version of github.com/TimDeve/valve-vdf-binary Licensed under MIT. See LICENSE file in this directory.
Package vdfbinary parses Valve's binary VDF format.
This is a vendored and modified version of github.com/TimDeve/valve-vdf-binary Licensed under MIT. See LICENSE file in this directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrEmptyVDF = errors.New("the vdf you are trying to parse appears empty") ErrNotBinaryVDF = errors.New("the vdf appears not to be binary, are you sure it is not a text vdf?") ErrCorruptedVDF = errors.New("reached the end of the file earlier than expected, your file might be corrupted") )
Functions ¶
This section is empty.
Types ¶
type Shortcut ¶
type Shortcut struct {
AppName string
Exe string
Icon string
StartDir string
Tags []string
AppID uint32
IsHidden bool
}
Shortcut represents a Steam non-Steam game shortcut. Fields are ordered for optimal memory alignment.
type VdfValue ¶
type VdfValue interface {
AsString() (string, bool)
GetString(key string) (string, bool)
AsUint() (uint32, bool)
GetUint(key string) (uint32, bool)
AsInt() (int, bool)
GetInt(key string) (int, bool)
AsFloat() (float32, bool)
GetFloat(key string) (float32, bool)
AsBool() (value, ok bool)
GetBool(key string) (value, ok bool)
AsMap() (VdfMap, bool)
GetMap(key string) (VdfMap, bool)
}
func MakeVdfValue ¶
func MakeVdfValue[D vdfValueTypes](s D) VdfValue