var temp_bytes = header_bytes;
header_bytes = new byte [1024];
var ret = new MemoryStream (header_bytes , 0 , 1024 , true);
ret.Write (temp_bytes , 0 , temp_bytes.Length);
return ret;
I finally found it myself ! thank you
Richard Deeming
i dig deep into memorystream and found the solution ! really appreciated