DecodeChunk decodes bs and returns a new decoded bytes
(chunkSize uint64, bs []byte, encodeType uint64, encodeKey common.Hash)
| 297 | |
| 298 | // DecodeChunk decodes bs and returns a new decoded bytes |
| 299 | func DecodeChunk(chunkSize uint64, bs []byte, encodeType uint64, encodeKey common.Hash) []byte { |
| 300 | return decodeChunk(chunkSize, bs, encodeType, encodeKey) |
| 301 | } |
| 302 | |
| 303 | func decodeChunk(chunkSize uint64, bs []byte, encodeType uint64, encodeKey common.Hash) []byte { |
| 304 | if len(bs) > int(chunkSize) { |
no test coverage detected