original_docstring: Convert an integer into a bytearray, zero-pad to howManyBytes.
      
      The returned bytearray may be smaller than howManyBytes, but will
      not be larger.  The returned bytearray will contain a big-endian
      encoding of the input integer (n).
      
docstring: Convert an integer into a bytearray, zero-pad to howManyBytes.
  The returned bytearray may be smaller than howManyBytes, but will
  not be larger.  The returned bytearray will contain a big-endian
  encoding of the input integer (n).
docstring_tokens: Convert an integer into a bytearray zero - pad to howManyBytes . The returned bytearray may be smaller than howManyBytes but will not be larger . The returned bytearray will contain a big - endian encoding of the input integer ( n ) .
code: def numberToBytes(n, howManyBytes=None):
      """Convert an integer into a bytearray, zero-pad to howManyBytes.
      
      The returned bytearray may be smaller than howManyBytes, but will
      not be larger.  The returned bytearray will contain a big-endian
      encoding of the input integer (n).
      """    
      if not howManyBytes:
          howManyBytes = numBytes(n)
      bytes = bytearray(howManyBytes)
      for count in range(howManyBytes-1, -1, -1):
          bytes[count] = int(n % 256)
          n >>= 8
      return bytes
code_tokens: def numberToBytes ( n , howManyBytes = None ) : if not howManyBytes : howManyBytes = numBytes ( n ) bytes = bytearray ( howManyBytes ) for count in range ( howManyBytes - 1 , - 1 , - 1 ) : bytes [ count ] = int ( n % 256 ) n >>= 8 return bytes
short_docstring: Convert an integer into a bytearray, zero-pad to howManyBytes.
short_docstring_tokens: Convert an integer into a bytearray zero - pad to howManyBytes .
comment: """Convert an integer into a bytearray, zero-pad to howManyBytes.
      
      The returned bytearray may be smaller than howManyBytes, but will
      not be larger.  The returned bytearray will contain a big-endian
      encoding of the input integer (n).
      """