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

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