MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / WriteBytes

Method WriteBytes

pcsx2/DEV9/PacketReader/IP/UDP/DNS/DNS_Classes.cpp:94–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void DNS_QuestionEntry::WriteBytes(u8* buffer, int* offset) const
95 {
96 WriteDNS_String(buffer, offset, name);
97 NetLib::WriteUInt16(buffer, offset, entryType);
98 NetLib::WriteUInt16(buffer, offset, entryClass);
99 }
100
101 DNS_ResponseEntry::DNS_ResponseEntry(const std::string& rName, u16 rType, u16 rClass, const std::vector<u8>& rData, u32 rTTL)
102 : DNS_QuestionEntry(rName, rType, rClass)

Callers

nothing calls this directly

Calls 5

WriteUInt16Function · 0.85
WriteBytesFunction · 0.85
WriteUInt32Function · 0.85
WriteByteArrayFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected