import struct


def _readLong(data):
	"""Tries to interpret the next 8 bytes of the data
	as a 64-bit signed integer.
	 """

	high, low = struct.unpack(">ll", data[0:8])
	big = (int(high) << 32) + low
	rest = data[8:]
	return (big, rest)