9 references to TryWriteCount
System.Private.Windows.Core (1)
System\IO\Compression\RunLengthEncoder.cs (1)
89if (!reader.TryRead(out byte value) || !writer.TryWriteCount(count, value))
System.Windows.Forms.Primitives.Tests (8)
System\SpanWriterTests.cs (8)
58writer.TryWriteCount(2, 1).Should().BeTrue(); 61writer.TryWriteCount(2, 2).Should().BeTrue(); 64writer.TryWriteCount(1, 3).Should().BeTrue(); 67writer.TryWriteCount(1, 4).Should().BeFalse(); 76writer.TryWriteCount(2, new Point(1, 2)).Should().BeTrue(); 79writer.TryWriteCount(2, new Point(3, 4)).Should().BeTrue(); 82writer.TryWriteCount(1, new Point(5, 6)).Should().BeTrue(); 85writer.TryWriteCount(1, new Point(7, 8)).Should().BeFalse();