func putLong(log logger.T, byteArray []byte, offset int, value int64) (err error) {
	byteArrayLength := len(byteArray)
	if offset > byteArrayLength-1 || offset+8 > byteArrayLength-1 || offset < 0 {
		log.Error("putLong failed: Offset is invalid.")
		return errors.New("Offset is outside the byte array.")
	}

	mbytes, err := longToBytes(log, value)
	if err != nil {
		log.Error("putLong failed: getBytesFromInteger Failed.")
		return err
	}

	copy(byteArray[offset:offset+8], mbytes)
	return nil
}
// putLong puts a long integer value to a byte array starting from the specified offset.
putLong puts a long integer value to a byte array starting from the specified offset.
// putLong puts a long integer value to a byte array starting from the specified offset .
func putLong(log logger.T, byteArray []byte, offset int, value int64) (err error) {
	byteArrayLength := len(byteArray)
	if offset > byteArrayLength-1 || offset+8 > byteArrayLength-1 || offset < 0 {
		log.Error("putLong failed: Offset is invalid.")
		return errors.New("Offset is outside the byte array.")
	}
	mbytes, err := longToBytes(log, value)
	if err != nil {
		log.Error("putLong failed: getBytesFromInteger Failed.")
		return err
	}
	copy(byteArray[offset:offset+8], mbytes)
	return nil
}
func putLong ( log logger . T , byteArray [ ] byte , offset int , value int64 ) ( err error ) { byteArrayLength := len ( byteArray ) if offset > byteArrayLength - 1 || offset + 8 > byteArrayLength - 1 || offset < 0 { log . Error ( " " ) return errors . New ( " " ) } mbytes , err := longToBytes ( log , value ) if err != nil { log . Error ( " " ) return err } copy ( byteArray [ offset : offset + 8 ] , mbytes ) return nil }
putLong puts a long integer value to a byte array starting from the specified offset.
putLong puts a long integer value to a byte array starting from the specified offset .