MCPcopy Create free account
hub / github.com/Monibuca/engine / readProperty

Method readProperty

util/amf.go:109–120  ·  view source on GitHub ↗
(m map[string]any)

Source from the content-addressed store, hash-verified

107}
108
109func (amf *AMF) readProperty(m map[string]any) (obj any, err error) {
110 var k string
111 var v any
112 if k, err = amf.readKey(); err == nil {
113 if v, err = amf.Unmarshal(); k == "" && v == ObjectEnd {
114 obj = m
115 } else if err == nil {
116 m[k] = v
117 }
118 }
119 return
120}
121
122func (amf *AMF) Unmarshal() (obj any, err error) {
123 if !amf.CanRead() {

Callers 1

UnmarshalMethod · 0.95

Calls 2

readKeyMethod · 0.95
UnmarshalMethod · 0.95

Tested by

no test coverage detected