Added BytesNeeded() functions to all the sniffer classes to allow
a pre-read data stream to be sniffed instead of actual files on disk. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1149 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#ifndef _SNIFFER_DISJ_LIST_H
|
||||
#define _SNIFFER_DISJ_LIST_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
class BPositionIO;
|
||||
|
||||
namespace BPrivate {
|
||||
@@ -20,7 +22,9 @@ class DisjList {
|
||||
public:
|
||||
DisjList();
|
||||
virtual ~DisjList();
|
||||
|
||||
virtual bool Sniff(BPositionIO *data) const = 0;
|
||||
virtual ssize_t BytesNeeded() const = 0;
|
||||
|
||||
void SetCaseInsensitive(bool how);
|
||||
bool IsCaseInsensitive();
|
||||
|
||||
Reference in New Issue
Block a user