mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
436493350e
1. changes sentinel to use an http-like interface 2. moves hexutil, crypto/blake2b, metrics packages to erigon-lib
13 lines
222 B
Go
13 lines
222 B
Go
package common
|
|
|
|
// CopyBytes returns an exact copy of the provided bytes.
|
|
func CopyBytes(b []byte) (copiedBytes []byte) {
|
|
if b == nil {
|
|
return nil
|
|
}
|
|
copiedBytes = make([]byte, len(b))
|
|
copy(copiedBytes, b)
|
|
|
|
return
|
|
}
|