()
| 96 | } |
| 97 | |
| 98 | func (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 | |
| 109 | func (amf *AMF) readProperty(m map[string]any) (obj any, err error) { |
| 110 | var k string |
no test coverage detected