From 29993e7a5f4c73284f99eb98a71a35356fad7f31 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 23 Mar 2022 13:42:08 -0500 Subject: [PATCH] [wip] don't make assumption that source/dest seq is contiguous address space --- leopard.nim | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/leopard.nim b/leopard.nim index 31e553b..6c0542d 100644 --- a/leopard.nim +++ b/leopard.nim @@ -1,3 +1,4 @@ +import pkg/stew/ptrops import pkg/stew/results import pkg/upraises @@ -169,7 +170,8 @@ proc encode*(code: ReedSolomonCode, data: Data): msg: LeopardInconsistentSizeMsg) enData[i] = allocAligned(symbolBytes, LEO_ALIGN_BYTES) - copyMem(enData[i], addr data[i][0], symbolBytes) + for j in 0..