本文整理匯總了Python中pyasn1.codec.ber.encoder.Encoder方法的典型用法代碼示例。如果您正苦於以下問題:Python encoder.Encoder方法的具體用法?Python encoder.Encoder怎麽用?Python encoder.Encoder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pyasn1.codec.ber.encoder
的用法示例。
在下文中一共展示了encoder.Encoder方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __call__
# 需要導入模塊: from pyasn1.codec.ber import encoder [as 別名]
# 或者: from pyasn1.codec.ber.encoder import Encoder [as 別名]
def __call__(self, client, defMode=False, maxChunkSize=0):
return encoder.Encoder.__call__(self, client, defMode, maxChunkSize)
示例2: __call__
# 需要導入模塊: from pyasn1.codec.ber import encoder [as 別名]
# 或者: from pyasn1.codec.ber.encoder import Encoder [as 別名]
def __call__(self, client, defMode=False, maxChunkSize=0):
return encoder.Encoder.__call__(self, client, defMode, maxChunkSize)
#: Turns ASN.1 object into CER octet stream.
#:
#: Takes any ASN.1 object (e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative)
#: walks all its components recursively and produces a CER octet stream.
#:
#: Parameters
#: ----------
# value: any pyasn1 object (e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative)
#: A pyasn1 object to encode
#:
#: defMode: :py:class:`bool`
#: If `False`, produces indefinite length encoding
#:
#: maxChunkSize: :py:class:`int`
#: Maximum chunk size in chunked encoding mode (0 denotes unlimited chunk size)
#:
#: Returns
#: -------
#: : :py:class:`bytes` (Python 3) or :py:class:`str` (Python 2)
#: Given ASN.1 object encoded into BER octetstream
#:
#: Raises
#: ------
#: : :py:class:`pyasn1.error.PyAsn1Error`
#: On encoding errors
示例3: __call__
# 需要導入模塊: from pyasn1.codec.ber import encoder [as 別名]
# 或者: from pyasn1.codec.ber.encoder import Encoder [as 別名]
def __call__(self, client, defMode=0, maxChunkSize=0):
return encoder.Encoder.__call__(self, client, defMode, maxChunkSize)