Skip to content

Commit ba47765

Browse files
committed
remove method
1 parent d8da8c7 commit ba47765

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

ManagedCode.Storage.Core/Helpers/Crc32Helper.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,4 @@ public static uint Calculate(byte[] bytes, uint crcValue = 0xffffffff)
6363
}
6464
return crcValue;
6565
}
66-
67-
private static byte[] StreamToByteArray(Stream stream)
68-
{
69-
// Create a memory stream to store the data from the input stream
70-
using (MemoryStream memoryStream = new MemoryStream())
71-
{
72-
int bufferSize = 4096;
73-
byte[] buffer = new byte[bufferSize];
74-
int bytesRead;
75-
76-
// Read from the input stream and write to the memory stream
77-
while ((bytesRead = stream.Read(buffer, 0, bufferSize)) > 0)
78-
{
79-
memoryStream.Write(buffer, 0, bytesRead);
80-
}
81-
82-
// Convert the memory stream to a byte array
83-
return memoryStream.ToArray();
84-
}
85-
}
8666
}

0 commit comments

Comments
 (0)