This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user