Binary streams convenience reader and writer