示例#1
0
                    public void decode(byte[] bytes, int pos)
                    {
                        if (bytes == null)
                        {
                            return;
                        }

                        m_SubFields = BitConverter.ToUInt32(JausUtils.getFromBuffer(bytes, pos, JausUtils.UINT_BYTES, false), 0);
                        pos        += JausUtils.UINT_BYTES;
                    }
示例#2
0
                public void decode(byte[] bytes, int pos)
                {
                    if (bytes == null)
                    {
                        return;
                    }

                    m_MessageID = BitConverter.ToUInt16(JausUtils.getFromBuffer(bytes, pos, JausUtils.USHORT_BYTES, false), 0);
                    pos        += JausUtils.USHORT_BYTES;
                }
示例#3
0
                public void decode(byte[] bytes, int pos)
                {
                    if (bytes == null)
                    {
                        return;
                    }

                    m_Status   = bytes[pos];
                    pos       += JausUtils.BYTE_BYTES;
                    m_Reserved = BitConverter.ToUInt32(JausUtils.getFromBuffer(bytes, pos, JausUtils.UINT_BYTES, false), 0);
                    pos       += JausUtils.UINT_BYTES;
                }
                public void decode(byte[] bytes, int pos)
                {
                    if (bytes == null)
                    {
                        return;
                    }

                    m_RequestID = bytes[pos];
                    pos        += JausUtils.BYTE_BYTES;
                    m_MaximumAllowedDuration = BitConverter.ToUInt32(JausUtils.getFromBuffer(bytes, pos, JausUtils.UINT_BYTES, false), 0);
                    pos += JausUtils.UINT_BYTES;
                    m_CommandMessage.decode(bytes, pos);
                    pos += m_CommandMessage.getSize();
                }
                public void decode(byte[] bytes, int pos)
                {
                    if (bytes == null)
                    {
                        return;
                    }

                    m_RequestID             = bytes[pos];
                    pos                    += JausUtils.BYTE_BYTES;
                    m_EventID               = bytes[pos];
                    pos                    += JausUtils.BYTE_BYTES;
                    m_ConfirmedPeriodicRate = BitConverter.ToUInt16(JausUtils.getFromBuffer(bytes, pos, JausUtils.USHORT_BYTES, false), 0);
                    pos                    += JausUtils.USHORT_BYTES;
                }
示例#6
0
                public void decode(byte[] bytes, int pos)
                {
                    if (bytes == null)
                    {
                        return;
                    }

                    m_RequestID             = bytes[pos];
                    pos                    += JausUtils.BYTE_BYTES;
                    m_EventType             = bytes[pos];
                    pos                    += JausUtils.BYTE_BYTES;
                    m_RequestedPeriodicRate = BitConverter.ToUInt16(JausUtils.getFromBuffer(bytes, pos, JausUtils.USHORT_BYTES, false), 0);
                    pos                    += JausUtils.USHORT_BYTES;
                    m_QueryMessage.decode(bytes, pos);
                    pos += m_QueryMessage.getSize();
                }
示例#7
0
                public void decode(byte[] bytes, int pos)
                {
                    if (bytes == null)
                    {
                        return;
                    }

                    m_SubsystemID   = BitConverter.ToUInt16(JausUtils.getFromBuffer(bytes, pos, JausUtils.USHORT_BYTES, false), 0);
                    pos            += JausUtils.USHORT_BYTES;
                    m_NodeID        = bytes[pos];
                    pos            += JausUtils.BYTE_BYTES;
                    m_ComponentID   = bytes[pos];
                    pos            += JausUtils.BYTE_BYTES;
                    m_AuthorityCode = bytes[pos];
                    pos            += JausUtils.BYTE_BYTES;
                }
示例#8
0
                    public void decode(byte[] bytes, int pos)
                    {
                        if (bytes == null)
                        {
                            return;
                        }


                        m_Length = BitConverter.ToUInt32(JausUtils.getFromBuffer(bytes, pos, JausUtils.UINT_BYTES, false), 0);
                        pos     += JausUtils.UINT_BYTES;

                        m_Data = null;

                        if (m_Length > 0)
                        {
                            m_Data = new byte[(int)m_Length];
                            m_Data = JausUtils.getFromBuffer(bytes, pos, (int)m_Length, true);
                            pos   += (int)m_Length;
                        }
                    }
示例#9
0
                    public void decode(byte[] bytes, int pos)
                    {
                        if (bytes == null)
                        {
                            return;
                        }


                        byte m_URILength = 0;

                        m_URILength = bytes[pos];
                        pos        += JausUtils.BYTE_BYTES;

                        m_URI = JausUtils.getFromBuffer(bytes, pos, (int)m_URILength, true, false);
                        pos  += (int)m_URILength;
                        m_MajorVersionNumber = bytes[pos];
                        pos += JausUtils.BYTE_BYTES;
                        m_MinorVersionNumber = bytes[pos];
                        pos += JausUtils.BYTE_BYTES;
                    }
示例#10
0
                public void decode(byte[] bytes, int pos)
                {
                    if (bytes == null)
                    {
                        return;
                    }

                    m_QueryType = bytes[pos];
                    pos        += JausUtils.BYTE_BYTES;
                    m_Type      = BitConverter.ToUInt16(JausUtils.getFromBuffer(bytes, pos, JausUtils.USHORT_BYTES, false), 0);
                    pos        += JausUtils.USHORT_BYTES;

                    byte m_IdentificationLength = 0;

                    m_IdentificationLength = bytes[pos];
                    pos += JausUtils.BYTE_BYTES;

                    m_Identification = JausUtils.getFromBuffer(bytes, pos, (int)m_IdentificationLength, true, false);
                    pos += (int)m_IdentificationLength;
                }
示例#11
0
                public void decode(byte[] bytes, int pos)
                {
                    if (bytes == null)
                    {
                        return;
                    }

                    m_PresenceVector = bytes[pos];
                    pos        += JausUtils.BYTE_BYTES;
                    m_RequestID = bytes[pos];
                    pos        += JausUtils.BYTE_BYTES;
                    if (checkPresenceVector(0))
                    {
                        m_ResponseCode = bytes[pos];
                        pos           += JausUtils.BYTE_BYTES;
                    }
                    if (checkPresenceVector(1))
                    {
                        m_ErrorMessage = JausUtils.getFromBuffer(bytes, pos, (int)80, true, false);
                        pos           += (int)80;
                    }
                }