Reformat all the things. Have fun with merge conflicts.

This commit is contained in:
Pierre Bourdon
2016-06-24 10:43:46 +02:00
parent 2115e8a4a6
commit 3570c7f03a
1116 changed files with 187405 additions and 180344 deletions

View File

@ -23,23 +23,19 @@
class PCAP final : public NonCopyable
{
public:
// Takes ownership of the file object. Assumes the file object is already
// opened in write mode.
explicit PCAP(File::IOFile* fp) : m_fp(fp)
{
AddHeader();
}
// Takes ownership of the file object. Assumes the file object is already
// opened in write mode.
explicit PCAP(File::IOFile* fp) : m_fp(fp) { AddHeader(); }
template <typename T>
void AddPacket(const T& obj)
{
AddPacket(reinterpret_cast<const u8*>(&obj), sizeof(obj));
}
template <typename T>
void AddPacket(const T& obj)
{
AddPacket(reinterpret_cast<const u8*>(&obj), sizeof (obj));
}
void AddPacket(const u8* bytes, size_t size);
void AddPacket(const u8* bytes, size_t size);
private:
void AddHeader();
void AddHeader();
std::unique_ptr<File::IOFile> m_fp;
std::unique_ptr<File::IOFile> m_fp;
};