|
|
@ -17,8 +17,7 @@ |
|
|
|
package main |
|
|
|
package main |
|
|
|
|
|
|
|
|
|
|
|
// getDataBlocks - fetches the data block only part of the input encoded blocks.
|
|
|
|
// getDataBlocks - fetches the data block only part of the input encoded blocks.
|
|
|
|
func getDataBlocks(enBlocks [][]byte, dataBlocks int, curBlockSize int) []byte { |
|
|
|
func getDataBlocks(enBlocks [][]byte, dataBlocks int, curBlockSize int) (data []byte) { |
|
|
|
var data []byte |
|
|
|
|
|
|
|
for _, block := range enBlocks[:dataBlocks] { |
|
|
|
for _, block := range enBlocks[:dataBlocks] { |
|
|
|
data = append(data, block...) |
|
|
|
data = append(data, block...) |
|
|
|
} |
|
|
|
} |
|
|
|