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

Method readKey

util/amf.go:98–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (amf *AMF) readKey() (string, error) {
99 if !amf.CanReadN(2) {
100 return "", io.ErrUnexpectedEOF
101 }
102 l := int(amf.ReadUint16())
103 if !amf.CanReadN(l) {
104 return "", io.ErrUnexpectedEOF
105 }
106 return string(amf.ReadN(l)), nil
107}
108
109func (amf *AMF) readProperty(m map[string]any) (obj any, err error) {
110 var k string

Callers 2

readPropertyMethod · 0.95
UnmarshalMethod · 0.95

Calls 3

CanReadNMethod · 0.65
ReadUint16Method · 0.65
ReadNMethod · 0.65

Tested by

no test coverage detected