OpenMS
Loading...
Searching...
No Matches
InputStream.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: OpenMS contributors $
7// --------------------------------------------------------------------------
8
9#pragma once
11
12namespace OpenMS
13{
15 class OPENMS_DLLAPI InputStream
16 {
17 public:
18 virtual ~InputStream() = default;
19 virtual UInt64 curPos() const = 0;
20 virtual Size readBytes(unsigned char* to_fill, Size max_to_read) = 0;
23 virtual void cancel() {}
24 };
25}
Internal byte stream shared by the XML compression adapters.
Definition InputStream.h:16
virtual UInt64 curPos() const =0
virtual ~InputStream()=default
virtual Size readBytes(unsigned char *to_fill, Size max_to_read)=0
virtual void cancel()
Definition InputStream.h:23
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19