mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
AK: Add Traits<ByteBuffer>::hash()
This commit is contained in:
parent
bb0feebddc
commit
3953004e60
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