Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::IDeflateService Class Referenceabstract

Interface of a service allowing compression/decompression of data. More...

#include <arcane/core/IDeflateService.h>

Inheritance diagram for Arcane::IDeflateService:
Collaboration diagram for Arcane::IDeflateService:

Public Member Functions

virtual void build ()=0
virtual void compress (ByteConstArrayView values, ByteArray &compressed_values)=0
 Compresses the data values and stores it in compressed_values.
virtual void compress (Span< const Byte > values, ByteArray &compressed_values)
 Compresses the data values and stores it in compressed_values.
virtual void decompress (ByteConstArrayView compressed_values, ByteArrayView values)=0
 Decompresses the data compressed_values and stores it in values.
virtual void decompress (Span< const Byte > compressed_values, Span< Byte > values)
 Decompresses the data compressed_values and stores it in values.

Detailed Description

Interface of a service allowing compression/decompression of data.

Deprecated
Use IDataCompressor instead.

Definition at line 42 of file IDeflateService.h.

Member Function Documentation

◆ build()

virtual void Arcane::IDeflateService::build ( )
pure virtual

◆ compress() [1/2]

virtual void Arcane::IDeflateService::compress ( ByteConstArrayView values,
ByteArray & compressed_values )
pure virtual

Compresses the data values and stores it in compressed_values.

This operation may throw an IOException exception in case of an error.

Implemented in Arcane::Bzip2DeflateService, and Arcane::LZ4DeflateService.

References compress().

Referenced by compress(), and compress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compress() [2/2]

void Arcane::IDeflateService::compress ( Span< const Byte > values,
ByteArray & compressed_values )
virtual

Compresses the data values and stores it in compressed_values.

This operation may throw an IOException exception in case of an error.

Definition at line 195 of file InterfaceImpl.cc.

References compress(), and Arcane::SpanImpl< T, SizeType, Extent >::smallView().

Here is the call graph for this function:

◆ decompress() [1/2]

virtual void Arcane::IDeflateService::decompress ( ByteConstArrayView compressed_values,
ByteArrayView values )
pure virtual

Decompresses the data compressed_values and stores it in values.

values must already have been allocated to the necessary size to contain the decompressed data. This operation may throw an IOException exception in case of an error.

Implemented in Arcane::Bzip2DeflateService, and Arcane::LZ4DeflateService.

References decompress().

Referenced by decompress(), and decompress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decompress() [2/2]

void Arcane::IDeflateService::decompress ( Span< const Byte > compressed_values,
Span< Byte > values )
virtual

Decompresses the data compressed_values and stores it in values.

values must already have been allocated to the necessary size to contain the decompressed data. This operation may throw an IOException exception in case of an error.

Definition at line 204 of file InterfaceImpl.cc.

References decompress(), and Arcane::SpanImpl< T, SizeType, Extent >::smallView().

Here is the call graph for this function:

The documentation for this class was generated from the following files: