func longToBytes(log logger.T, input int64) (result []byte, err error) {
	buf := new(bytes.Buffer)
	binary.Write(buf, binary.BigEndian, input)
	if buf.Len() != 8 {
		log.Error("longToBytes failed: buffer output length is not equal to 8.")
		return make([]byte, 8), errors.New("Input array size is not equal to 8.")
	}

	return buf.Bytes(), nil
}
// longToBytes gets bytes array from a long integer.
longToBytes gets bytes array from a long integer.
// longToBytes gets bytes array from a long integer .
func longToBytes(log logger.T, input int64) (result []byte, err error) {
	buf := new(bytes.Buffer)
	binary.Write(buf, binary.BigEndian, input)
	if buf.Len() != 8 {
		log.Error("longToBytes failed: buffer output length is not equal to 8.")
		return make([]byte, 8), errors.New("Input array size is not equal to 8.")
	}
	return buf.Bytes(), nil
}
func longToBytes ( log logger . T , input int64 ) ( result [ ] byte , err error ) { buf := new ( bytes . Buffer ) binary . Write ( buf , binary . BigEndian , input ) if buf . Len ( ) != 8 { log . Error ( " " ) return make ( [ ] byte , 8 ) , errors . New ( " " ) } return buf . Bytes ( ) , nil }
longToBytes gets bytes array from a long integer.
longToBytes gets bytes array from a long integer .