mirror of
https://github.com/minio/minio.git
synced 2026-11-11 06:29:05 +00:00
Decoding bug fixes #42
This commit is contained in:
1 parent
5e0c5089e6
commit
4d7c1e3b68
8 files changed
+116
-85
No files matched your search
@@ -24,7 +24,7 @@ package erasure
|
||||
// #include <erasure-code.h>
|
||||
// #include <stdlib.h>
|
||||
//
|
||||
// #include "encode.h"
|
||||
// #include "common.h"
|
||||
import "C"
|
||||
import (
|
||||
"errors"
|
||||
@@ -123,7 +123,7 @@ func NewEncoder(ep *EncoderParams) *Encoder {
|
||||
func (e *Encoder) Encode(block []byte) ([][]byte, int) {
|
||||
var block_len = len(block)
|
||||
|
||||
chunk_size := int(C.calc_chunk_size(e.k, C.uint(block_len)))
|
||||
chunk_size := int(C.minio_calc_chunk_size(e.k, C.uint32_t(block_len)))
|
||||
chunk_len := chunk_size * e.p.k
|
||||
pad_len := chunk_len - block_len
|
||||
|
||||
|
||||
Reference in new issue
Block a user