private Tuple<int, ByteString> ReadN(Stream s, int n) { var buf = new byte[n]; var r = s.Read(buf, 0, n); return new Tuple<int, ByteString>(r, ByteString.Create(buf, 0, r)); }