added Buffer Read/Write support for bool type