cuSBF
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
cusbf::detail::GzIstream Class Reference

std::istream adapter for GzStreambuf. More...

#include <gzstreambuf.hpp>

Inheritance diagram for cusbf::detail::GzIstream:
[legend]
Collaboration diagram for cusbf::detail::GzIstream:
[legend]

Static Public Member Functions

static Result< std::unique_ptr< GzIstream > > open (const std::filesystem::path &path)
 Opens a gzip file as an input stream.
 

Detailed Description

std::istream adapter for GzStreambuf.

Definition at line 74 of file gzstreambuf.hpp.

Member Function Documentation

◆ open()

static Result< std::unique_ptr< GzIstream > > cusbf::detail::GzIstream::open ( const std::filesystem::path &  path)
inlinestatic

Opens a gzip file as an input stream.

Parameters
pathFilesystem path to a .gz file.

Definition at line 81 of file gzstreambuf.hpp.

83 {
84 auto streambuf = GzStreambuf::open(path);
85 if (!streambuf) {
86 return Err(streambuf.error());
87 }
88 return std::unique_ptr<GzIstream>(new GzIstream(std::move(*streambuf)));
89 }
static Result< std::unique_ptr< GzStreambuf > > open(const std::filesystem::path &path)
Opens path for binary gzip read.
consteval bool separatorPositionAlwaysEncodesInvalid(char *input, uint64_t separatorPosition, uint64_t index)
Recursively tests whether placing the separator byte at any position in an input of valid bytes alway...
Definition Alphabet.cuh:37
cuda::std::unexpected< Error > Err(Error error)
Failure return; converts to any Result<T> via cuda::std::unexpected.
Definition error.hpp:219
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: