2.2.3.4.2 Extensible Encoding Record

The Extensible Encoding Record indicates an ad hoc encoding for subsequent Envelope Records. The record data in this case is a Multipurpose Internet Mail Extensions (MIME) content type, as specified in [RFC2045], which is encoded by using UTF-8 encoding.<5>


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Record Type

Encoding Length (variable)

...

Type (variable)

...

Delimiter

Subtype (variable)

...

Parameters (variable)

...

Record Type (1 byte): This octet MUST be set to 0x04 to indicate that this record is an Extensible Encoding Record.

Encoding Length (variable): The value MUST be set to the size, in octets, of the payload, and encoded based on the scheme that is specified in section 2.2.2. The length MUST NOT be set to 0.

Type (variable): This MUST be set to a type that is specified in [RFC2045] section 5.1.

Delimiter (1 byte): This MUST be set to the octet 0x2F (UTF-8 encoding for "/").

Subtype (variable): This MUST be set to a subtype that is specified in [RFC2045] section 5.1.

Parameters (variable): There can be one or more parameters in which the parameter structure is defined as follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Parameter Delimiter

Parameter (variable)

...

Parameter Delimiter (1 byte): This MUST be set to the octet 0x3B (UTF-8 encoding for ";").

Parameter (variable): This MUST be set to a parameter as specified in [RFC2045] section 5.1.