public override int Available () { MemoryStream ms = (MemoryStream) Wrapped; return (int)(ms.Length - ms.Position); } }