1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-02-21 22:41:59 +08:00
committed by cnb
parent e81dc698dd
commit d159944d37
5 changed files with 9 additions and 27 deletions

View File

@@ -56,9 +56,7 @@ type DoubleUInt8Struct struct {
}
func (di *DoubleUInt8) Pack(p []byte, opt *Options) (int, error) {
for i, value := range *di {
p[i] = value
}
copy(p, (*di)[:])
return 2, nil
}
@@ -131,9 +129,7 @@ type SliceUInt8Struct struct {
}
func (ia *SliceUInt8) Pack(p []byte, opt *Options) (int, error) {
for i, value := range *ia {
p[i] = value
}
copy(p, *ia)
return len(*ia) + 1, nil
}