mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 03:31:20 +00:00
22 lines
364 B
Go
22 lines
364 B
Go
|
package test_helpers
|
||
|
|
||
|
func FillByteSlice(sliceLength int, value byte) []byte {
|
||
|
bytes := make([]byte, sliceLength)
|
||
|
|
||
|
for index := range bytes {
|
||
|
bytes[index] = value
|
||
|
}
|
||
|
|
||
|
return bytes
|
||
|
}
|
||
|
|
||
|
func FillByteArraySlice(sliceLength int, value []byte) [][]byte {
|
||
|
bytes := make([][]byte, sliceLength)
|
||
|
|
||
|
for index := range bytes {
|
||
|
bytes[index] = value
|
||
|
}
|
||
|
|
||
|
return bytes
|
||
|
}
|