add support for EnableFeature and CustomReportDetails

This commit is contained in:
Tnze
2024-06-16 00:42:16 +08:00
parent ee23172e0a
commit 40b32dfdd7
3 changed files with 66 additions and 19 deletions

View File

@ -58,6 +58,9 @@ func (a Ary[LEN]) ReadFrom(r io.Reader) (n int64, err error) {
} else {
n += nn
}
if Len < 0 {
return n, errors.New("array length less than zero")
}
array := reflect.ValueOf(a.Ary)
for array.Kind() == reflect.Ptr {