© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
5 replies
cheeze2000

✅ MemoryStream question

If I have a byte[], and I'm instantiating a MemoryStream with this byte array, does it occupy twice the memory? Or is the MemoryStream simply referring to the byte array instead of copying the contents in the array?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Problem storing iText7 pdf in a memoryStream
C#CC# / help
13mo ago
Iterating over AsyncEnumerable and writing to MemoryStream
C#CC# / help
3y ago
❔ Load Certificate from Azure Key Vault as memorystream
C#CC# / help
3y ago
Can't read from MemoryStream from current position
C#CC# / help
3y ago