Levi H
Levi H

Reputation: 3586

Easily insert data into any position of a stream without overwriting?

What's the easiest way to do this with a normal memorystream? Aside from creating 2 streams.

Upvotes: 1

Views: 2297

Answers (1)

SLaks
SLaks

Reputation: 887449

The simplest option is to use a List<byte> instead of a MemoryStream and call the InsertRange method.

Upvotes: 2

Related Questions