Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 7f3644a

Browse files
committed
rename to shorter GetStream
1 parent cd31201 commit 7f3644a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServiceStack.Text/RecyclableMemoryStream.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ public static class MemoryStreamFactory
4141
#if !SL5
4242
public static RecyclableMemoryStreamManager RecyclableInstance = new RecyclableMemoryStreamManager();
4343

44-
public static MemoryStream CreateMemoryStream()
44+
public static MemoryStream GetStream()
4545
{
4646
return UseRecyclableMemoryStream
4747
? RecyclableInstance.GetStream()
4848
: new MemoryStream();
4949
}
5050

51-
public static MemoryStream CreateMemoryStream(byte[] bytes)
51+
public static MemoryStream GetStream(byte[] bytes)
5252
{
5353
return UseRecyclableMemoryStream
5454
? RecyclableInstance.GetStream(typeof(MemoryStreamFactory).Name, bytes, 0, bytes.Length)
5555
: new MemoryStream(bytes);
5656
}
5757

58-
public static MemoryStream CreateMemoryStream(byte[] bytes, int index, int count)
58+
public static MemoryStream GetStream(byte[] bytes, int index, int count)
5959
{
6060
return UseRecyclableMemoryStream
6161
? RecyclableInstance.GetStream(typeof(MemoryStreamFactory).Name, bytes, index, count)

0 commit comments

Comments
 (0)