consolidate various buffer classes, remove dependency from archive:input_stream and archive:mem_ptr