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

Method WriteBytes

pcsx2/DEV9/PacketReader/IP/ICMP/ICMP_Packet.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void ICMP_Packet::WriteBytes(u8* buffer, int* offset)
48 {
49 NetLib::WriteByte08(buffer, offset, type);
50 NetLib::WriteByte08(buffer, offset, code);
51 NetLib::WriteUInt16(buffer, offset, checksum);
52 NetLib::WriteByteArray(buffer, offset, 4, headerData);
53
54 payload->WriteBytes(buffer, offset);
55 }
56
57 ICMP_Packet* ICMP_Packet::Clone() const
58 {

Callers

nothing calls this directly

Calls 3

WriteByte08Function · 0.85
WriteUInt16Function · 0.85
WriteByteArrayFunction · 0.85

Tested by

no test coverage detected