Composite Stream Wrapper providing partial MemoryStream and full original Stream
问题 Does anyone know of a composite stream solution that will pre-load the first portion of a Stream in to a MemoryStream and keep the remainder as the original Stream which will be accessed when subsequent parts are required as necessary? I should imagine some wrapper class would implement the Stream interface and transparently juggle the access between the two streams depending upon which part is accessed. I'm hoping this is a solution someone may have solved before, maybe to optimize