; Auto-generated. Do not edit!


(in-package test_roscpp_serialization-msg)


;//! \htmlinclude FixedLengthStringArray.msg.html

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