win: add buffer_suze implementation
make buffer_size common, implement on windows
add buffer_size test
move option to the middle, value to the end.