mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Add Traits<ByteBuffer>::hash()
This commit is contained in:
parent
bb0feebddc
commit
3953004e60
Notes:
sideshowbarker
2024-07-17 08:59:19 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/3953004e60 Pull-request: https://github.com/SerenityOS/serenity/pull/14568 Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 9 additions and 0 deletions
|
@ -321,4 +321,13 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct Traits<ByteBuffer> : public GenericTraits<ByteBuffer> {
|
||||
static unsigned hash(ByteBuffer const& byte_buffer)
|
||||
{
|
||||
return Traits<ReadonlyBytes>::hash(byte_buffer.span());
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue