Minor improvements

This commit is contained in:
Bond_009
2020-09-16 14:16:44 +02:00
parent 6bf0acb854
commit 2dbf73b989
7 changed files with 41 additions and 48 deletions

View File

@@ -234,7 +234,9 @@ namespace Emby.Server.Implementations.Data
{
if (statement.BindParameters.TryGetValue(name, out IBindParameter bindParam))
{
bindParam.Bind(value.ToByteArray());
Span<byte> byteValue = stackalloc byte[16];
value.TryWriteBytes(byteValue);
bindParam.Bind(byteValue);
}
else
{