Compare commits
2
Commits
e51afcbdf5
...
7804647768
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7804647768 | ||
|
|
793dfe6a87 |
@@ -100,7 +100,7 @@ struct string_view: quill::Codec<std::string_view>
|
||||
Base::encode(p_buffer, p_cache, p_cacheIndex, std::string_view {p_arg.data(), p_arg.size()});
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace Bigfoot::Codec
|
||||
|
||||
template<>
|
||||
struct quill::Codec<eastl::string>: Bigfoot::Codec::string_view<eastl::string>
|
||||
|
||||
@@ -162,6 +162,8 @@ TEST_F(FileFixture, Write_ShouldRoundTripArbitraryData)
|
||||
bool operator==(const Payload&) const = default;
|
||||
};
|
||||
|
||||
static_assert(std::is_trivially_copyable_v<Payload>);
|
||||
|
||||
constexpr Payload payload {.m_intValue = 42, .m_doubleValue = 3.14, .m_tag = {'B', 'I', 'G', 'F'}};
|
||||
m_writeScratchFile.Write({std::bit_cast<const std::byte*>(&payload), sizeof(payload)}, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user