implement combined bgzf encoding/decoding class avoiding copying where possible