]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/io/BgzfStream_p.h
Implemented basic TCP support layer
[bamtools.git] / src / api / internal / io / BgzfStream_p.h
index 88d7472eeebfa81bed6cd2021841a2534877b7ac..47b360904740420ff919748a07fdf09756c6e111 100644 (file)
@@ -2,7 +2,7 @@
 // BgzfStream_p.h (c) 2011 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
 // ---------------------------------------------------------------------------
-// Last modified: 10 October 2011(DB)
+// Last modified: 25 October 2011(DB)
 // ---------------------------------------------------------------------------
 // Based on BGZF routines developed at the Broad Institute.
 // Provides the basic functionality for reading & writing BGZF files
@@ -23,6 +23,7 @@
 // We mean it.
 
 #include "api/api_global.h"
+#include "api/BamAux.h"
 #include "api/IBamIODevice.h"
 #include <string>
 
@@ -82,13 +83,8 @@ class BgzfStream {
         bool m_isWriteCompressed;
         IBamIODevice* m_device;
 
-        struct RaiiWrapper {
-            RaiiWrapper(void);
-            ~RaiiWrapper(void);
-            char* UncompressedBlock;
-            char* CompressedBlock;
-        };
-        RaiiWrapper Resources;
+        RaiiBuffer m_uncompressedBlock;
+        RaiiBuffer m_compressedBlock;
 };
 
 } // namespace Internal