/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("uint"); return(size); }
public int setPresenceVector(int index) { BitArray pvBitSet = JausUtils.setPV((uint)m_PresenceVector); pvBitSet.Set(index, true); m_PresenceVector = (byte)JausUtils.getPVint(pvBitSet); return(0); }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte") * 7; return(size); }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte"); size += m_RequesterID.getSize(); return(size); }
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; }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((uint)m_AdditionResult), pos, (int)JausUtils.UINT_BYTES, false); pos += JausUtils.UINT_BYTES; }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte"); size += JausUtils.getNumBytes("uint"); size += m_CommandMessage.getSize(); return(size); }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte"); size += JausUtils.getNumBytes("byte"); size += m_ReportMessage.getSize(); return(size); }
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; }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((ushort)m_MessageID), pos, (int)JausUtils.USHORT_BYTES, false); pos += JausUtils.USHORT_BYTES; }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte"); size += m_URI.Length; size += JausUtils.getNumBytes("byte"); size += JausUtils.getNumBytes("byte"); return(size); }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte"); size += JausUtils.getNumBytes("byte"); size += JausUtils.getNumBytes("ushort"); size += m_QueryMessage.getSize(); return(size); }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte"); size += JausUtils.getNumBytes("ushort"); size += JausUtils.getNumBytes("byte"); size += m_Identification.Length; return(size); }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes[pos] = (byte)m_Status; pos += JausUtils.BYTE_BYTES; bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((uint)m_Reserved), pos, (int)JausUtils.UINT_BYTES, false); pos += JausUtils.UINT_BYTES; }
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 encode(byte[] bytes, int pos) { if (bytes == null) { return; } uint m_SubFieldsTemp; bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((uint)m_SubFields), pos, (int)JausUtils.UINT_BYTES, false); pos += JausUtils.UINT_BYTES; }
public uint getNodeID() { BitArray bitFieldBitSet = JausUtils.setPV(m_SubFields); BitArray subFieldBitSet = new BitArray(8); int i = 0; for (int index = 8; index <= 15; index++) { subFieldBitSet.Set(i++, bitFieldBitSet.Get(index)); } return((uint)JausUtils.getPVint(subFieldBitSet)); }
public uint getSubsystemID() { BitArray bitFieldBitSet = JausUtils.setPV(m_SubFields); BitArray subFieldBitSet = new BitArray(16); int i = 0; for (int index = 16; index <= 31; index++) { subFieldBitSet.Set(i++, bitFieldBitSet.Get(index)); } return((uint)JausUtils.getPVint(subFieldBitSet)); }
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; }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes[pos] = (byte)m_RequestID; pos += JausUtils.BYTE_BYTES; bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((uint)m_MaximumAllowedDuration), pos, (int)JausUtils.UINT_BYTES, false); pos += JausUtils.UINT_BYTES; m_CommandMessage.encode(bytes, pos); pos += m_CommandMessage.getSize(); }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((uint)m_Length), pos, (int)JausUtils.UINT_BYTES, false); pos += JausUtils.UINT_BYTES; bytes = JausUtils.addToBuffer(bytes, m_Data, pos, (int)m_Length, true); pos += (int)m_Length; }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes[pos] = (byte)m_RequestID; pos += JausUtils.BYTE_BYTES; bytes[pos] = (byte)m_EventID; pos += JausUtils.BYTE_BYTES; bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((ushort)m_ConfirmedPeriodicRate), pos, (int)JausUtils.USHORT_BYTES, false); pos += JausUtils.USHORT_BYTES; }
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; }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((ushort)m_SubsystemID), pos, (int)JausUtils.USHORT_BYTES, false); pos += JausUtils.USHORT_BYTES; bytes[pos] = (byte)m_NodeID; pos += JausUtils.BYTE_BYTES; bytes[pos] = (byte)m_ComponentID; pos += JausUtils.BYTE_BYTES; bytes[pos] = (byte)m_AuthorityCode; pos += JausUtils.BYTE_BYTES; }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes[pos] = (byte)m_RequestID; pos += JausUtils.BYTE_BYTES; bytes[pos] = (byte)m_EventType; pos += JausUtils.BYTE_BYTES; bytes = JausUtils.addToBuffer(bytes, BitConverter.GetBytes((ushort)m_RequestedPeriodicRate), pos, (int)JausUtils.USHORT_BYTES, false); pos += JausUtils.USHORT_BYTES; m_QueryMessage.encode(bytes, pos); pos += m_QueryMessage.getSize(); }
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(); }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte"); size += JausUtils.getNumBytes("byte"); if (checkPresenceVector(0)) { size += JausUtils.getNumBytes("byte"); } if (checkPresenceVector(1)) { size += (int)80; } return(size); }
public void encode(byte[] bytes, int pos) { if (bytes == null) { return; } bytes[pos] = (byte)m_URI.Length; pos += JausUtils.BYTE_BYTES; bytes = JausUtils.addToBuffer(bytes, m_URI.ToCharArray(), pos, (int)m_URI.Length); pos += (int)m_URI.Length; bytes[pos] = (byte)m_MajorVersionNumber; pos += JausUtils.BYTE_BYTES; bytes[pos] = (byte)m_MinorVersionNumber; pos += JausUtils.BYTE_BYTES; }
/** * Returns the number of bytes the used data members of the class occupies * in the buffer. This is not the number of bytes the data type occupies in * C Sharp, but the bytes expected on the wire. * * @return */ public int getSize() { int size = 0; size += JausUtils.getNumBytes("byte"); size += m_DestinationID.getSize(); if (checkPresenceVector(0)) { size += m_SourceID.getSize(); } if (checkPresenceVector(1)) { size += JausUtils.getNumBytes("byte"); } size += m_MessagePayload.getSize(); return(size); }