Class Base64MessageSerializer

Assembly: redb.Route.dll

Base64 as a data format: Marshal("application/base64") encodes the body, Unmarshal<byte[]>("application/base64") decodes it.

public sealed class Base64MessageSerializer : BinaryWrapperSerializer, IMessageSerializer

Inheritance

Object→BinaryWrapperSerializer→Base64MessageSerializer

Implements

Inherited Members

Properties

ContentType

Content type this serializer handles (e.g., "application/json").

public override string ContentType { get; }

FormatName

Short format name for error messages (GZip).

protected override string FormatName { get; }

Methods

Decode(byte[])

Unwraps the data (decode / decompress).

protected override byte[] Decode(byte[] data)

Encode(byte[])

Wraps the payload (encode / compress).

protected override byte[] Encode(byte[] payload)