len of Segments slice should be winsize?

... and cap of Segments  should by capacity?