public byte[] GetWriteBytes() { byte[] buffer = new byte[MarshalSize]; using (BinaryWriter writer = new BinaryWriter(new MemoryStream(buffer))) { writer.Write(base.IndexGroup); writer.Write(base.IndexOffset); NotificationSettingsMarshaller.Marshal(this._settings, this._notificationDataLength, writer, true); } int marshalSize = MarshalSize; return(buffer); }
protected override int calcWriteLength() => ((8 + NotificationSettingsMarshaller.MarshalSize(true)) * base.sumEntities.Count);
public NotificationHandleSumEntity(uint indexGroup, uint indexOffset, NotificationSettings settings, int dataLength) : base(indexGroup, indexOffset, 4, 8 + NotificationSettingsMarshaller.MarshalSize(true)) { this._settings = settings; this._notificationDataLength = dataLength; }