Interface IContentTransformer
Interface for transforming content, typically for purposes such as encryption or compression.
Namespace: Serenity.Persistence.Domain.Interfaces
Assembly: Serenity.Global.Domain.dll
Syntax
public interface IContentTransformer
Methods
InverseTransform(ReadOnlySpan<byte>)
Reverses the transformation applied to the input data.
Declaration
byte[] InverseTransform(ReadOnlySpan<byte> input)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | input | The input data to reverse transform. |
Returns
| Type | Description |
|---|---|
| byte[] | The original data before transformation. |
Transform(ReadOnlySpan<byte>)
Transforms the input data.
Declaration
byte[] Transform(ReadOnlySpan<byte> input)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | input | The input data to transform. |
Returns
| Type | Description |
|---|---|
| byte[] | The transformed data. |