update ReadFromSegment

passes the input array in instead of the _segment.