選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

29 行
626 B

  1. #
  2. # This file is part of pyasn1 software.
  3. #
  4. # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
  5. # License: http://snmplabs.com/pyasn1/license.html
  6. #
  7. from pyasn1.type import base
  8. from pyasn1.type import tag
  9. __all__ = ['endOfOctets']
  10. class EndOfOctets(base.SimpleAsn1Type):
  11. defaultValue = 0
  12. tagSet = tag.initTagSet(
  13. tag.Tag(tag.tagClassUniversal, tag.tagFormatSimple, 0x00)
  14. )
  15. _instance = None
  16. def __new__(cls, *args, **kwargs):
  17. if cls._instance is None:
  18. cls._instance = object.__new__(cls, *args, **kwargs)
  19. return cls._instance
  20. endOfOctets = EndOfOctets()