private byte[] ReadBytes(Stream stream, int len, out bool eos) { var res = new byte[len]; var read = stream.Read(res, 0, len); eos = read<len; return res; }
public bool ReadBody(Stream stream) { bool eos; this.Body = owner.ReadBytes(stream, this.DataSize, out eos); return(!eos); }