[wip] use ptr pointer instead of pointer for leoEncode/leoDecode params in leopard/wrapper.nim

This commit is contained in:
Michael Bradley, Jr 2022-03-21 18:46:53 -05:00
parent 5aa83808f3
commit 3592d7ac7f
No known key found for this signature in database
GPG Key ID: 9FCA591DA4CE7D0D

View File

@ -237,13 +237,13 @@ func leoEncodeWorkCount*(originalCount, recoveryCount: cuint): cuint
## Returns other values on errors.
proc leoEncode*(
bufferBytes: uint64, ## Number of bytes in each data buffer
originalCount: cuint, ## Number of originalData[] buffer pointers
recoveryCount: cuint, ## Number of recovery data buffer pointers
## (readable post-call from start of workData[])
workCount: cuint, ## Number of workData[] buffer pointers
originalData: pointer, ## Array of pointers to original data buffers
workData: pointer, ## Array of pointers to work data buffers
bufferBytes: uint64, ## Number of bytes in each data buffer
originalCount: cuint, ## Number of originalData[] buffer pointers
recoveryCount: cuint, ## Number of recovery data buffer pointers
## (readable post-call from start of workData[])
workCount: cuint, ## Number of workData[] buffer pointers
originalData: ptr pointer, ## Array of pointers to original data buffers
workData: ptr pointer, ## Array of pointers to work data buffers
): LeopardResult {.leo, importc: "leo_encode".}
@ -283,11 +283,11 @@ func leoDecodeWorkCount*(originalCount, recoveryCount: cuint): cuint
## Returns other values on errors.
proc leoDecode*(
bufferBytes: uint64, ## Number of bytes in each data buffer
originalCount: cuint, ## Number of originalData[] buffer pointers
recoveryCount: cuint, ## Number of recoveryData[] buffer pointers
workCount: cuint, ## Number of workData[] buffer pointers
originalData: pointer, ## Array of pointers to original data buffers
recoveryData: pointer, ## Array of pointers to recovery data buffers
workData: pointer, ## Array of pointers to work data buffers
bufferBytes: uint64, ## Number of bytes in each data buffer
originalCount: cuint, ## Number of originalData[] buffer pointers
recoveryCount: cuint, ## Number of recoveryData[] buffer pointers
workCount: cuint, ## Number of workData[] buffer pointers
originalData: ptr pointer, ## Array of pointers to original data buffers
recoveryData: ptr pointer, ## Array of pointers to recovery data buffers
workData: ptr pointer, ## Array of pointers to work data buffers
): LeopardResult {.leo, importc: "leo_decode".}