mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -19,7 +19,7 @@ struct Digest {
|
|||
constexpr static size_t Size = DigestS / 8;
|
||||
u8 data[Size];
|
||||
|
||||
[[nodiscard]] ALWAYS_INLINE const u8* immutable_data() const { return data; }
|
||||
[[nodiscard]] ALWAYS_INLINE u8 const* immutable_data() const { return data; }
|
||||
[[nodiscard]] ALWAYS_INLINE size_t data_length() const { return Size; }
|
||||
|
||||
[[nodiscard]] ALWAYS_INLINE ReadonlyBytes bytes() const { return { immutable_data(), data_length() }; }
|
||||
|
@ -39,12 +39,12 @@ public:
|
|||
constexpr static size_t block_size() { return BlockSize; }
|
||||
constexpr static size_t digest_size() { return DigestSize; }
|
||||
|
||||
virtual void update(const u8*, size_t) = 0;
|
||||
virtual void update(u8 const*, size_t) = 0;
|
||||
|
||||
void update(Bytes buffer) { update(buffer.data(), buffer.size()); }
|
||||
void update(ReadonlyBytes buffer) { update(buffer.data(), buffer.size()); }
|
||||
void update(const ByteBuffer& buffer) { update(buffer.data(), buffer.size()); }
|
||||
void update(StringView string) { update((const u8*)string.characters_without_null_termination(), string.length()); }
|
||||
void update(ByteBuffer const& buffer) { update(buffer.data(), buffer.size()); }
|
||||
void update(StringView string) { update((u8 const*)string.characters_without_null_termination(), string.length()); }
|
||||
|
||||
virtual DigestType peek() = 0;
|
||||
virtual DigestType digest() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue