1 instantiation of MemoryBufferWriter
Microsoft.AspNetCore.Components.Server (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
53
writer = new
MemoryBufferWriter
();
10 references to MemoryBufferWriter
Microsoft.AspNetCore.Components.Server (10)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (6)
337
var
memoryBufferWriter =
MemoryBufferWriter
.Get();
352
MemoryBufferWriter
.Return(memoryBufferWriter);
359
var
memoryBufferWriter =
MemoryBufferWriter
.Get();
383
MemoryBufferWriter
.Return(memoryBufferWriter);
src\SignalR\common\Shared\MemoryBufferWriter.cs (4)
20
private static
MemoryBufferWriter
? _cachedInstance;
48
public static
MemoryBufferWriter
Get()
50
var
writer = _cachedInstance;
72
public static void Return(
MemoryBufferWriter
writer)