ReadChunkEncoded read the encoded data from storage and return it.
(kvIdx uint64, chunkIdx uint64)
| 113 | |
| 114 | // ReadChunkEncoded read the encoded data from storage and return it. |
| 115 | func (ds *DataShard) ReadChunkEncoded(kvIdx uint64, chunkIdx uint64) ([]byte, error) { |
| 116 | return ds.readChunkWith(kvIdx, chunkIdx, func(cdata []byte, chunkIdx uint64) []byte { |
| 117 | return cdata |
| 118 | }) |
| 119 | } |
| 120 | |
| 121 | // ReadChunk read the encoded data from storage and decode it. |
| 122 | func (ds *DataShard) ReadChunk(kvIdx uint64, chunkIdx uint64, commit common.Hash) ([]byte, error) { |
no test coverage detected