mirror of https://github.com/v2ray/v2ray-core
Darien Raymond
8 years ago
8 changed files with 9 additions and 12 deletions
@ -1,10 +0,0 @@
|
||||
package serial |
||||
|
||||
import "hash" |
||||
|
||||
func WriteHash(h hash.Hash) func([]byte) (int, error) { |
||||
return func(b []byte) (int, error) { |
||||
h.Sum(b[:0]) |
||||
return h.Size(), nil |
||||
} |
||||
} |
Loading…
Reference in new issue