def intTo8ByteArray(inValue):
 values = (((inValue >> 56) & 255), ((inValue >> 48) & 255), ((inValue >> 40) & 255), ((inValue >> 32) & 255), ((inValue >> 24) & 255), ((inValue >> 16) & 255), ((inValue >> 8) & 255), (inValue & 255))
 s = struct.Struct('B B B B B B B B')
 packed_data = s.pack(*values)
 return packed_data

def intTo8ByteArray ( inValue ) : values = ( ( ( inValue >> 56 ) & 255 ) , ( ( inValue >> 48 ) & 255 ) , ( ( inValue >> 40 ) & 255 ) , ( ( inValue >> 32 ) & 255 ) , ( ( inValue >> 24 ) & 255 ) , ( ( inValue >> 16 ) & 255 ) , ( ( inValue >> 8 ) & 255 ) , ( inValue & 255 ) ) s = struct . Struct ( 'B B B B B B B B' ) packed_data = s . pack ( * values ) return packed_data
converts an int to a packed byte array .