MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / valueDecoder

Method valueDecoder

pager_lib/pyasn1/codec/ber/decoder.py:92–105  ·  view source on GitHub ↗
(self, substrate, asn1Spec,
                     tagSet=None, length=None, state=None,
                     decodeFun=None, substrateFun=None,
                     **options)

Source from the content-addressed store, hash-verified

90 protoComponent = univ.Any('')
91
92 def valueDecoder(self, substrate, asn1Spec,
93 tagSet=None, length=None, state=None,
94 decodeFun=None, substrateFun=None,
95 **options):
96 if substrateFun:
97 asn1Object = self._createComponent(asn1Spec, tagSet, '', **options)
98
99 for chunk in substrateFun(asn1Object, substrate, length, options):
100 yield chunk
101
102 return
103
104 for value in decodeFun(substrate, asn1Spec, tagSet, length, **options):
105 yield value
106
107 def indefLenValueDecoder(self, substrate, asn1Spec,
108 tagSet=None, length=None, state=None,

Callers 1

__call__Method · 0.45

Calls 1

_createComponentMethod · 0.45

Tested by

no test coverage detected