The low level BER based encoding used by spoon to serialize
objects.
Users of the spoon library will probably not need to use this package
at all.
|
encode_container(fd,
tag,
items)
Encode a list of items into a container with the given tag and
write it to a stream.
|
list
|
decode_container(fd,
tag)
Decode a container into a list of items.
|
|
encode_stream(fd,
*items)
Encode one or more python objects into a ber stream, written to
the given file object.
|
|
decode_stream(fd)
Decode a ber-encoded python object from a file object and return
it.
|
|
encode(*items)
Encode one or more python objects into a ber stream, and return
the encoded string.
|
|
decode(s)
Decode a python object from a ber-encoded string and return
it.
|
|
UNIVERSAL = 0
|
|
APPLICATION = 1
|
|
CONTEXT = 2
|
|
PRIVATE = 3
|
|
EOF_TYPE = <ASN.1 Tag(UNIVERSAL, 0, size=0, container=False)>
|
|
NULL_TYPE = <ASN.1 Tag(UNIVERSAL, 5, size=None, container=False)>
|
|
INT_TYPE = <ASN.1 Tag(UNIVERSAL, 2, size=None, container=False)>
|
|
BYTES_TYPE = <ASN.1 Tag(UNIVERSAL, 4, size=None, container=False)>
|
|
UTF8_TYPE = <ASN.1 Tag(UNIVERSAL, 12, size=None, container=False)>
|
|
LIST_TYPE = <ASN.1 Tag(UNIVERSAL, 16, size=None, container=True)>
|
|
__module__ = 'spoon'
|
|
x = <ASN.1 Tag(UNIVERSAL, 16, size=None, container=True)>
|