func bytesToLong(log logger.T, input []byte) (result int64, err error) {
	var res int64
	inputLength := len(input)
	if inputLength != 8 {
		log.Error("bytesToLong failed: input array size is not equal to 8.")
		return 0, errors.New("Input array size is not equal to 8.")
	}
	buf := bytes.NewBuffer(input)
	binary.Read(buf, binary.BigEndian, &res)
	return res, nil
}
// bytesToLong gets a Long integer from a byte array.
bytesToLong gets a Long integer from a byte array.
// bytesToLong gets a Long integer from a byte array .
func bytesToLong(log logger.T, input []byte) (result int64, err error) {
	var res int64
	inputLength := len(input)
	if inputLength != 8 {
		log.Error("bytesToLong failed: input array size is not equal to 8.")
		return 0, errors.New("Input array size is not equal to 8.")
	}
	buf := bytes.NewBuffer(input)
	binary.Read(buf, binary.BigEndian, &res)
	return res, nil
}
func bytesToLong ( log logger . T , input [ ] byte ) ( result int64 , err error ) { var res int64 inputLength := len ( input ) if inputLength != 8 { log . Error ( " " ) return 0 , errors . New ( " " ) } buf := bytes . NewBuffer ( input ) binary . Read ( buf , binary . BigEndian , & res ) return res , nil }
bytesToLong gets a Long integer from a byte array.
bytesToLong gets a Long integer from a byte array .