btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / storage / sniffer / Range.h
blobd7d299ed9a8c8275d48f88ac8bff170429099647
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //---------------------------------------------------------------------
5 /*!
6 \file sniffer/Range.h
7 MIME sniffer range declarations
8 */
9 #ifndef _SNIFFER_RANGE_H
10 #define _SNIFFER_RANGE_H
12 #include <SupportDefs.h>
14 namespace BPrivate {
15 namespace Storage {
16 namespace Sniffer {
18 class Err;
20 //! A range of byte offsets from which to check a pattern against a data stream.
21 class Range {
22 public:
23 Range(int32 start, int32 end);
25 status_t InitCheck() const;
26 Err* GetErr() const;
28 int32 Start() const;
29 int32 End() const;
31 void SetTo(int32 start, int32 end);
32 private:
33 int32 fStart;
34 int32 fEnd;
35 status_t fCStatus;
38 }; // namespace Sniffer
39 }; // namespace Storage
40 }; // namespace BPrivate
42 #endif // _SNIFFER_RANGE_H