Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int ReadEntireStream(Stream oStream, byte[] arrBytes)
- {
- int offset = 0;
- while (offset < arrBytes.LongLength)
- {
- offset += oStream.Read(arrBytes, offset, arrBytes.Length - offset);
- }
- return offset;
- }
Add Comment
Please, Sign In to add comment