diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-01-23 10:26:16 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-01-23 10:26:16 +0100 |
commit | ebb8da508c25a6523bd684e4ee2e76ddcc6cde4d (patch) | |
tree | 9e0610e644f45bdb9988b5caf8ddf98c46ee9842 /pyasn1/codec/cer/encoder.py | |
parent | e5da7182b23c6152945d391dfa2c7fe2b80f12a8 (diff) | |
download | pyasn1-git-ebb8da508c25a6523bd684e4ee2e76ddcc6cde4d.tar.gz |
docstrings for encoders
Diffstat (limited to 'pyasn1/codec/cer/encoder.py')
-rw-r--r-- | pyasn1/codec/cer/encoder.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pyasn1/codec/cer/encoder.py b/pyasn1/codec/cer/encoder.py index 92fbb0f..70b7570 100644 --- a/pyasn1/codec/cer/encoder.py +++ b/pyasn1/codec/cer/encoder.py @@ -142,6 +142,21 @@ class Encoder(encoder.Encoder): 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 type object (e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative) +#: A pyasn1 type 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) encode = Encoder(tagMap, typeMap) # EncoderFactory queries class instance and builds a map of tags -> encoders |