also added ReaderSize function to guess before reading the size of a source. Change-Id: I659e174821696b3c58759b132b82710a49583018