hla: add ability to configure read/write buffer size