Skip to main content

CompositeCodec

Class: CompositeCodec

Implements

Constructors

constructor

new CompositeCodec()

Accessors

contentType

get contentType(): ContentTypeId

Returns

ContentTypeId

Implementation of

ContentCodec.contentType

Defined in

codecs/Composite.ts:35

Methods

decode

decode(content, codecs): Composite

Parameters

NameType
contentEncodedContent
codecsCodecRegistry

Returns

Composite

Implementation of

ContentCodec.decode

Defined in

codecs/Composite.ts:55


encode

encode(content, codecs): EncodedContent

Parameters

NameType
contentComposite
codecsCodecRegistry

Returns

EncodedContent

Implementation of

ContentCodec.encode

Defined in

codecs/Composite.ts:39


fromProto

Private fromProto(content, codecs): Composite

Parameters

NameType
contentComposite_Part
codecsCodecRegistry

Returns

Composite

Defined in

codecs/Composite.ts:83


toProto

Private toProto(content, codecs): Composite_Part

Parameters

NameType
contentComposite
codecsCodecRegistry

Returns

Composite_Part

Defined in

codecs/Composite.ts:62