formatting
This commit is contained in:
parent
d4d0abd013
commit
1f0e6ba8fa
19 changed files with 88 additions and 79 deletions
|
@ -13,5 +13,5 @@ internal enum DisplayCommand : ushort
|
|||
BitmapLinearWin = 0x0013,
|
||||
BitmapLinearAnd = 0x0014,
|
||||
BitmapLinearOr = 0x0015,
|
||||
BitmapLinearXor = 0x0016,
|
||||
}
|
||||
BitmapLinearXor = 0x0016
|
||||
}
|
||||
|
|
|
@ -9,8 +9,8 @@ namespace DisplayCommands.Internals;
|
|||
|
||||
internal sealed class DisplayConnection(IOptions<DisplayConfiguration> options) : IDisplayConnection, IDisposable
|
||||
{
|
||||
private readonly UdpClient _udpClient = new(options.Value.Hostname, options.Value.Port);
|
||||
private readonly ArrayPool<byte> _arrayPool = ArrayPool<byte>.Shared;
|
||||
private readonly UdpClient _udpClient = new(options.Value.Hostname, options.Value.Port);
|
||||
|
||||
public ValueTask SendClearAsync()
|
||||
{
|
||||
|
@ -119,8 +119,5 @@ internal sealed class DisplayConnection(IOptions<DisplayConfiguration> options)
|
|||
_arrayPool.Return(buffer);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_udpClient.Dispose();
|
||||
}
|
||||
}
|
||||
public void Dispose() => _udpClient.Dispose();
|
||||
}
|
||||
|
|
|
@ -6,5 +6,5 @@ internal enum DisplaySubCommand : ushort
|
|||
BitmapCompressZ = 0x677a,
|
||||
BitmapCompressBz = 0x627a,
|
||||
BitmapCompressLz = 0x6c7a,
|
||||
BitmapCompressZs = 0x7a73,
|
||||
}
|
||||
BitmapCompressZs = 0x7a73
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue