fix: amf Marshal AMF0_STRICT_ARRAY do not write end

This commit is contained in:
langhuihui
2024-07-09 15:50:38 +08:00
parent 803e18a111
commit 30c8d5e4eb

View File

@@ -269,7 +269,6 @@ func (amf *AMF) Marshal(v any) []byte {
for i := 0; i < size; i++ {
amf.Marshal(v.Index(i).Interface())
}
amf.Write(END_OBJ)
case reflect.Ptr:
vv := reflect.Indirect(v)
if vv.Kind() == reflect.Struct {