parameters: (self, info, encoding, errors)
return_statement: return buf + self._create_header(info, GNU_FORMAT, encoding, errors)
docstring: Return the object as a GNU header block sequence.
docstring_summary: Return the object as a GNU header block sequence.
docstring_tokens: Return the object as a GNU header block sequence .
function: def create_gnu_header(self, info, encoding, errors):
          """Return the object as a GNU header block sequence.
          """
          info["magic"] = GNU_MAGIC
  
          buf = b""
          if len(info["linkname"]) > LENGTH_LINK:
              buf += self._create_gnu_long_header(info["linkname"], GNUTYPE_LONGLINK, encoding, errors)
  
          if len(info["name"]) > LENGTH_NAME:
              buf += self._create_gnu_long_header(info["name"], GNUTYPE_LONGNAME, encoding, errors)
  
          return buf + self._create_header(info, GNU_FORMAT, encoding, errors)
function_tokens: def create_gnu_header ( self , info , encoding , errors ) : info [ "magic" ] = GNU_MAGIC buf = b"" if len ( info [ "linkname" ] ) > LENGTH_LINK : buf += self . _create_gnu_long_header ( info [ "linkname" ] , GNUTYPE_LONGLINK , encoding , errors ) if len ( info [ "name" ] ) > LENGTH_NAME : buf += self . _create_gnu_long_header ( info [ "name" ] , GNUTYPE_LONGNAME , encoding , errors ) return buf + self . _create_header ( info , GNU_FORMAT , encoding , errors )