class Lz4Result

Defined at line 21 of file ../../src/storage/volume_image/utils/lz4_result.h

Wrapper on top of LZ4* function return codes.

Public Methods

void Lz4Result (LZ4F_errorCode_t code)

Implicit conversion from LZ4F_error_code_t.

Defined at line 24 of file ../../src/storage/volume_image/utils/lz4_result.h

bool is_ok ()

Returns true if the underlying |code_| is not an error.

Defined at line 27 of file ../../src/storage/volume_image/utils/lz4_result.h

bool is_error ()

Returns true if the underlying |code_| is an error.

Defined at line 30 of file ../../src/storage/volume_image/utils/lz4_result.h

std::string_view error ()

Returns a view into the error name of the underlying |code_|.

Defined at line 33 of file ../../src/storage/volume_image/utils/lz4_result.h

size_t byte_count ()

Returns the byte count, when overriden return value happens. This usually means that

a function either returns a negative value or a number of bytes.

Defined at line 40 of file ../../src/storage/volume_image/utils/lz4_result.h