101 data <<
int32(entry.MailID);
102 data <<
int8(entry.SenderType);
104 data <<
int64(entry.Cod);
105 data <<
int32(entry.StationeryID);
106 data <<
int64(entry.SentMoney);
107 data <<
int32(entry.Flags);
108 data << float(entry.DaysLeft);
109 data <<
int32(entry.MailTemplateID);
111 data <<
int32(entry.Attachments.size());
113 for (
auto const& att : entry.Attachments)
116 data.
WriteBit(entry.SenderCharacter.is_initialized());
117 data.
WriteBit(entry.AltSenderID.is_initialized());
123 if (entry.SenderCharacter)
124 data << *entry.SenderCharacter;
126 if (entry.AltSenderID)
127 data <<
int32(*entry.AltSenderID);
int8_t int8
Definition: g3dmath.h:163
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int64_t int64
Definition: g3dmath.h:169
int32_t int32
Definition: g3dmath.h:167
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198