Browse Source

Merge remote-tracking branch 'upstream/master'

* upstream/master:
  Update outputstream.d
  bio/sff/read.d: ulong fix by Matthias Klumpp <mak@debian.org>   see https://github.com/biod/BioD/issues/27
bio2
George Githinji 5 years ago
parent
commit
8ee68fd34c
  1. 9
      bio/core/bgzf/outputstream.d
  2. 2
      bio/sff/read.d

9
bio/core/bgzf/outputstream.d

@ -190,11 +190,14 @@ class BgzfOutputStream : Stream {
/// Flush all remaining BGZF blocks and underlying stream.
override void flush() {
flushCurrentBlock();
foreach (task; _compression_tasks) {
while (!_compression_tasks.empty) {
auto task = _compression_tasks.front;
auto block = task.yieldForce();
writeResult(block);
writeResult(block);
_compression_tasks.popFront();
}
_stream.flush();
_current_size = 0;
}

2
bio/sff/read.d

@ -22,5 +22,5 @@ struct SffRead {
ushort clip_adapter_right;
/// Record start offset in the file
size_t file_offset;
ulong file_offset;
}

Loading…
Cancel
Save