mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03: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 ✅
@ -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 New Issue
Block a user