From c5147e0f93fe991713cc0ba10e43985e063e897f Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Mon, 16 Jan 2023 12:10:09 +0100 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f02393b..e9c148ff 100644 --- a/README.md +++ b/README.md @@ -146,8 +146,10 @@ but you could for instance also use [mmap](https://github.com/edsrzf/mmap-go) to data[i] := make([]byte, 50000) } + // The above allocations can also be done by the encoder: + // data := enc.(reedsolomon.Extended).AllocAligned(50000) - // Fill some data into the data shards + // Fill some data into the data shards for i, in := range data[:10] { for j:= range in { in[j] = byte((i+j)&0xff)