; Auto-generated. Do not edit!


(in-package perf_roscpp-msg)


;//! \htmlinclude ThroughputMessage.msg.html

(defclass <ThroughputMessage> (ros-message)
  ((array
    :reader array-val
    :initarg :array
    :type (vector fixnum)
   :initform (make-array 0 :element-type 'fixnum :initial-element 0)))
)
(defmethod serialize ((msg <ThroughputMessage>) ostream)
  "Serializes a message object of type '<ThroughputMessage>"
  (let ((__ros_arr_len (length (slot-value msg 'array))))
    (write-byte (ldb (byte 8 0) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_arr_len) ostream))
  (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream))
    (slot-value msg 'array))
)
(defmethod deserialize ((msg <ThroughputMessage>) istream)
  "Deserializes a message object of type '<ThroughputMessage>"
  (let ((__ros_arr_len 0))
    (setf (ldb (byte 8 0) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_arr_len) (read-byte istream))
    (setf (slot-value msg 'array) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'array)))
      (dotimes (i __ros_arr_len)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<ThroughputMessage>)))
  "Returns string type for a message object of type '<ThroughputMessage>"
  "perf_roscpp/ThroughputMessage")
(defmethod md5sum ((type (eql '<ThroughputMessage>)))
  "Returns md5sum for a message object of type '<ThroughputMessage>"
  "dda33390139e301b6c212139192418ca")
(defmethod message-definition ((type (eql '<ThroughputMessage>)))
  "Returns full string definition for message of type '<ThroughputMessage>"
  (format nil "uint8[] array~%~%~%~%"))
(defmethod serialization-length ((msg <ThroughputMessage>))
  (+ 0
     4 (reduce #'+ (slot-value msg 'array) :key #'(lambda (ele) (declare (ignorable ele)) (+ 1)))
))
(defmethod ros-message-to-list ((msg <ThroughputMessage>))
  "Converts a ROS message object to a list"
  (list '<ThroughputMessage>
    (cons ':array (array-val msg))
))
