Closed qmfrederik closed 5 years ago
Stream has a Stream.WriteByte overload, so you don't need to create a new array just to write a single byte. Plus, throwaway arrays like this put pressure on the garbage collector.
Stream.WriteByte
Stream has a
Stream.WriteByte
overload, so you don't need to create a new array just to write a single byte. Plus, throwaway arrays like this put pressure on the garbage collector.