10 references to CreateSegments
Microsoft.AspNetCore.WebUtilities.Tests (10)
FormPipeReaderTests.cs (8)
431
var readOnlySequence = ReadOnlySequenceFactory.
CreateSegments
(Encoding.UTF8.GetBytes("foo=bar&"), Encoding.UTF8.GetBytes("baz=boo"));
462
var readOnlySequence = ReadOnlySequenceFactory.
CreateSegments
(Encoding.UTF8.GetBytes("fo=bar&ba"), Encoding.UTF8.GetBytes("z=boo&t="));
476
var readOnlySequence = ReadOnlySequenceFactory.
CreateSegments
(Encoding.UTF8.GetBytes("foo=bar&baz=boo&t="));
490
var readOnlySequence = ReadOnlySequenceFactory.
CreateSegments
(Encoding.UTF8.GetBytes("foo=ba&baz=bo"), Encoding.UTF8.GetBytes("o&t="));
504
var readOnlySequence = ReadOnlySequenceFactory.
CreateSegments
(Encoding.UTF8.GetBytes("foo=ba&baz=bo"), Encoding.UTF8.GetBytes("o&asdfasdfasd="));
518
var readOnlySequence = ReadOnlySequenceFactory.
CreateSegments
(Encoding.UTF8.GetBytes("foo=ba&baz=bo"), Encoding.UTF8.GetBytes("o&t=asdfasdfasd"));
602
{ ReadOnlySequenceFactory.
CreateSegments
(Encoding.UTF8.GetBytes("fo=bar&b"), Encoding.UTF8.GetBytes("a")) },
609
{ ReadOnlySequenceFactory.
CreateSegments
(Encoding.UTF8.GetBytes("fo=bar&b"), Encoding.UTF8.GetBytes("=")) },
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (2)
81
return
CreateSegments
(data);
103
return
CreateSegments
(segments.ToArray());