mirror of
https://github.com/minio/minio.git
synced 2025-12-07 00:02:31 -05:00
Decoding bug fixes #42
This commit is contained in:
@@ -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