Configurable read/write buffer