This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +24
-5
lines changed
pkg/Microsoft.Private.PackageBaseline Expand file tree Collapse file tree 5 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 2601
2601
" 4.7.1" ,
2602
2602
" 4.7.2" ,
2603
2603
" 4.7.3" ,
2604
- " 4.7.4"
2604
+ " 4.7.4" ,
2605
+ " 4.7.5"
2605
2606
],
2606
2607
"BaselineVersion" : " 4.7.0" ,
2607
2608
"InboxOn" : {},
2612
2613
"4.0.2.0" : " 4.7.0" ,
2613
2614
"4.0.2.1" : " 4.7.1" ,
2614
2615
"4.0.2.2" : " 4.7.3" ,
2615
- "4.0.2.3" : " 4.7.4"
2616
+ "4.0.2.3" : " 4.7.4" ,
2617
+ "4.0.2.4" : " 4.7.5"
2616
2618
}
2617
2619
},
2618
2620
"System.IO.Pipes" : {
Original file line number Diff line number Diff line change 1
1
<Project >
2
2
<Import Project =" ..\Directory.Build.props" />
3
3
<PropertyGroup >
4
- <AssemblyVersion >4.0.2.3 </AssemblyVersion >
5
- <PackageVersion >4.7.4 </PackageVersion >
4
+ <AssemblyVersion >4.0.2.4 </AssemblyVersion >
5
+ <PackageVersion >4.7.5 </PackageVersion >
6
6
<StrongNameKeyId >Open</StrongNameKeyId >
7
7
</PropertyGroup >
8
8
</Project >
Original file line number Diff line number Diff line change @@ -1005,7 +1005,7 @@ private void WriteMultiSegment(ReadOnlySpan<byte> source)
1005
1005
}
1006
1006
1007
1007
// We filled the segment
1008
- _writingHead . End += writable ;
1008
+ _writingHead . End += _writingHeadBytesBuffered ;
1009
1009
_writingHeadBytesBuffered = 0 ;
1010
1010
1011
1011
// This is optimized to use pooled memory. That's why we pass 0 instead of
Original file line number Diff line number Diff line change @@ -278,5 +278,19 @@ public async Task NullExaminedAndConsumedNoops()
278
278
ReadResult result = await _pipe . Reader . ReadAsync ( ) ;
279
279
_pipe . Reader . AdvanceTo ( default , default ) ;
280
280
}
281
+
282
+ [ Fact ]
283
+ public async Task AdvanceFollowedByWriteAsyncTest ( )
284
+ {
285
+ Memory < byte > buffer = new byte [ 26 ] ;
286
+ Pipe pipe = new ( new PipeOptions ( minimumSegmentSize : 1 ) ) ;
287
+
288
+ var mem = pipe . Writer . GetMemory ( 14 ) . Slice ( 0 , 14 ) ;
289
+ buffer . Slice ( 0 , 14 ) . CopyTo ( mem ) ;
290
+ pipe . Writer . Advance ( 14 ) ;
291
+ await pipe . Writer . WriteAsync ( buffer . slice ( 14 ) ) ;
292
+ ReadResult res = await pipe . Reader . ReadAsync ( ) ;
293
+ Assert . Equal ( res . Buffer . Length , buffer . Length ) ;
294
+ }
281
295
}
282
296
}
Original file line number Diff line number Diff line change 26
26
<AdditionalProperties >$(AdditionalProperties)</AdditionalProperties >
27
27
</Project >
28
28
<!-- add specific builds / pkgproj's here to include in servicing builds -->
29
+ <Project Include =" $(MSBuildThisFileDirectory)System.IO.Pipelines\pkg\System.IO.Pipelines.pkgproj" >
30
+ <AdditionalProperties >$(AdditionalProperties)</AdditionalProperties >
31
+ </Project >
29
32
</ItemGroup >
30
33
31
34
<ItemGroup >
You can’t perform that action at this time.
0 commit comments