MCPcopy Index your code
hub / github.com/Monibuca/engine / ReadAMF

Function ReadAMF

util/amf.go:73–80  ·  view source on GitHub ↗
(amf *AMF)

Source from the content-addressed store, hash-verified

71}
72
73func ReadAMF[T string | float64 | bool | map[string]any](amf *AMF) (result T) {
74 value, err := amf.Unmarshal()
75 if err != nil {
76 return
77 }
78 result, _ = value.(T)
79 return
80}
81
82func (amf *AMF) ReadShortString() (result string) {
83 return ReadAMF[string](amf)

Callers

nothing calls this directly

Calls 1

UnmarshalMethod · 0.65

Tested by

no test coverage detected