34 references to BinaryTranslator
Microsoft.Build (14)
BackEnd\BuildManager\CacheSerialization.cs (2)
38var translator = BinaryTranslator.GetWriteTranslator(fileStream); 124using var translator = BinaryTranslator.GetReadTranslator(fileStream, InterningBinaryReader.PoolingBuffer);
BackEnd\Client\MSBuildClient.cs (1)
653ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(memoryStream);
BackEnd\Client\MSBuildClientPacketPump.cs (1)
90_binaryReadTranslator = BinaryTranslator.GetReadTranslator(_readBufferMemoryStream, InterningBinaryReader.CreateSharedBuffer());
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
759ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(writeStream); 985ITranslator readTranslator = BinaryTranslator.GetReadTranslator(packetStream, _binaryReaderFactory);
BackEnd\Shared\BuildRequestConfiguration.cs (2)
1071? BinaryTranslator.GetWriteTranslator(stream) 1073: BinaryTranslator.GetReadTranslator(stream, InterningBinaryReader.PoolingBuffer);
BackEnd\Shared\TargetResult.cs (4)
313var itemTranslator = BinaryTranslator.GetWriteTranslator(itemsStream); 340using var itemTranslator = BinaryTranslator.GetReadTranslator(itemsStream, InterningBinaryReader.PoolingBuffer); 354? BinaryTranslator.GetWriteTranslator(stream) 355: BinaryTranslator.GetReadTranslator(stream, InterningBinaryReader.PoolingBuffer);
NodeEndpointOutOfProcBase.cs (2)
600_packetFactory.DeserializeAndRoutePacket(0, packetType, BinaryTranslator.GetReadTranslator(localReadPipe, _sharedReadBuffer)); 632ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(packetStream);
Microsoft.Build.Engine.UnitTests (8)
AssemblyNameEx_Tests.cs (4)
686ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(serializationStream); 691ITranslator readTranslator = BinaryTranslator.GetReadTranslator(serializationStream, InterningBinaryReader.PoolingBuffer); 710ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(serializationStream); 715ITranslator readTranslator = BinaryTranslator.GetReadTranslator(serializationStream, InterningBinaryReader.PoolingBuffer);
BackEnd\BinaryTranslator_Tests.cs (2)
40using ITranslator readTranslator = BinaryTranslator.GetReadTranslator(stream, InterningBinaryReader.PoolingBuffer); 43using ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(stream);
BackEnd\TranslationHelpers.cs (2)
34return BinaryTranslator.GetWriteTranslator(s_serializationStream); 44return BinaryTranslator.GetReadTranslator(s_serializationStream, InterningBinaryReader.PoolingBuffer);
Microsoft.Build.Tasks.Core (4)
GetSDKReferenceFiles.cs (2)
934using var translator = BinaryTranslator.GetReadTranslator(fs, InterningBinaryReader.PoolingBuffer); 979var translator = BinaryTranslator.GetWriteTranslator(fs);
StateFileBase.cs (2)
54var translator = BinaryTranslator.GetWriteTranslator(s); 87using var translator = BinaryTranslator.GetReadTranslator(s, InterningBinaryReader.PoolingBuffer);
Microsoft.Build.Tasks.UnitTests (6)
AssemblyDependency\TaskTranslatorHelpers.cs (2)
62return BinaryTranslator.GetReadTranslator(_serializationStream, InterningBinaryReader.PoolingBuffer); 68return BinaryTranslator.GetWriteTranslator(_serializationStream);
AssemblyNameEx_Tests.cs (4)
686ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(serializationStream); 691ITranslator readTranslator = BinaryTranslator.GetReadTranslator(serializationStream, InterningBinaryReader.PoolingBuffer); 710ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(serializationStream); 715ITranslator readTranslator = BinaryTranslator.GetReadTranslator(serializationStream, InterningBinaryReader.PoolingBuffer);
MSBuild (2)
NodeEndpointOutOfProcBase.cs (2)
600_packetFactory.DeserializeAndRoutePacket(0, packetType, BinaryTranslator.GetReadTranslator(localReadPipe, _sharedReadBuffer)); 632ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(packetStream);