BaseIo implementation.
BaseReader and BaseWriter declaration.