C# Runtime  0.8
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
alfa.rt.Compressed< T > Class Template Reference

Representation of a compressed Alfa object value. Contains a implementation specific compress byte[] value. representing the underlying value. More...

Inherits alfa.rt.CustomEncodedType< T >.

Public Member Functions

 Compressed (Func< DataSupplier, T > c, byte[] encodedBytes)
 For internal use; create a compressed object. More...
 
 Compressed (Converters.SupplierConsumer< T > conv, BuilderConfig builderConfig, T o)
 For internal use; create a compressed object. More...
 

Static Public Member Functions

static Compressed< T > FromValue (Func< DataSupplier, T > c, byte[] compressedBytes)
 Create a Compressed object using the supplied value and compressed bytes. More...
 
static Compressed< T > FromValue (Converters.SupplierConsumer< T > convertor, BuilderConfig builderConfig, T unencodedObject)
 Create a Compressed object using the supplied value to be compressed. More...
 

Protected Member Functions

override byte[] Encode (BuilderConfig builderConfig, byte[] data)
 For internal use; encode data to create compressed value. More...
 
override byte[] Decode (BuilderConfig builderConfig, byte[] data)
 For internal use; decode data to create uncompressed value. More...
 

Detailed Description

Representation of a compressed Alfa object value. Contains a implementation specific compress byte[] value. representing the underlying value.

Constructor & Destructor Documentation

◆ Compressed() [1/2]

alfa.rt.Compressed< T >.Compressed ( Func< DataSupplier, T >  c,
byte[]  encodedBytes 
)
inline

For internal use; create a compressed object.

Parameters
cC.
encodedBytesEncoded bytes.

◆ Compressed() [2/2]

alfa.rt.Compressed< T >.Compressed ( Converters.SupplierConsumer< T >  conv,
BuilderConfig  builderConfig,
o 
)
inline

For internal use; create a compressed object.

Parameters
convConv.
builderConfigBuilder config.
oO.

Member Function Documentation

◆ Decode()

override byte [] alfa.rt.Compressed< T >.Decode ( BuilderConfig  builderConfig,
byte[]  data 
)
inlineprotected

For internal use; decode data to create uncompressed value.

Returns
The decode.
Parameters
builderConfigBuilder config.
dataData.

◆ Encode()

override byte [] alfa.rt.Compressed< T >.Encode ( BuilderConfig  builderConfig,
byte[]  data 
)
inlineprotected

For internal use; encode data to create compressed value.

Returns
The encode.
Parameters
builderConfigBuilder config.
dataData.

◆ FromValue() [1/2]

static Compressed<T> alfa.rt.Compressed< T >.FromValue ( Converters.SupplierConsumer< T >  convertor,
BuilderConfig  builderConfig,
unencodedObject 
)
inlinestatic

Create a Compressed object using the supplied value to be compressed.

Returns
The value.
Parameters
convertorConvertor.
builderConfigBuilder config.
unencodedObjectUnencoded object.

◆ FromValue() [2/2]

static Compressed<T> alfa.rt.Compressed< T >.FromValue ( Func< DataSupplier, T >  c,
byte[]  compressedBytes 
)
inlinestatic

Create a Compressed object using the supplied value and compressed bytes.

Returns
The value.
Parameters
cC.
encodedBytesEncoded bytes.

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