code: public byte[] getMessage() {
          byte result[] = new byte[3 + m_length];
          int offset = 0;
  
          result[offset++] = (byte)(m_length + 2);
          result[offset++] = (byte)m_slaveId;
          result[offset++] = (byte)m_status;
          if (m_length > 0) {
              System.arraycopy(m_data, 0, result, offset, m_length - 2);
          }
  
          return result;
      }
docs: getMessage -- format the message into a byte array.
  @return Byte array of message