DecoderRegistry
Defined in: registry.ts:7
Which decoder reads which program. One decoder per program address; registering a second one for the same program
throws unless replace is set, so a protocol’s decoder never silently shadows a built-in.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DecoderRegistry(
decoders?):DecoderRegistry
Defined in: registry.ts:10
Parameters
Section titled “Parameters”decoders?
Section titled “decoders?”readonly InstructionDecoder[] = []
Returns
Section titled “Returns”DecoderRegistry
Accessors
Section titled “Accessors”decoders
Section titled “decoders”Get Signature
Section titled “Get Signature”get decoders(): readonly
InstructionDecoder[]
Defined in: registry.ts:38
Returns
Section titled “Returns”readonly InstructionDecoder[]
Methods
Section titled “Methods”get(
programAddress):InstructionDecoder|undefined
Defined in: registry.ts:23
Parameters
Section titled “Parameters”programAddress
Section titled “programAddress”string
Returns
Section titled “Returns”InstructionDecoder | undefined
has(
programAddress):boolean
Defined in: registry.ts:27
Parameters
Section titled “Parameters”programAddress
Section titled “programAddress”string
Returns
Section titled “Returns”boolean
register()
Section titled “register()”register(
decoder,options?):this
Defined in: registry.ts:14
Parameters
Section titled “Parameters”decoder
Section titled “decoder”options?
Section titled “options?”replace?
Section titled “replace?”boolean
Returns
Section titled “Returns”this
with()
Section titled “with()”with(
decoders,options?):DecoderRegistry
Defined in: registry.ts:32
A copy with more decoders: the defaults stay as they are.
Parameters
Section titled “Parameters”decoders
Section titled “decoders”readonly InstructionDecoder[]
options?
Section titled “options?”replace?
Section titled “replace?”boolean
Returns
Section titled “Returns”DecoderRegistry