summaryrefslogtreecommitdiffstats
path: root/fastlib/src/vespa/fastlib/io/inputstream.h
blob: 22f65eb95c3304caf743bdd18d30e1d4e40ce6f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <sys/types.h>

class Fast_InputStream
{
  public:

    virtual ~Fast_InputStream() { }

    virtual ssize_t Available(void) = 0;
    virtual bool    Close(void) = 0;
    virtual ssize_t Read(void *targetBuffer, size_t bufferSize) = 0;
    virtual ssize_t Skip(size_t skipNBytes) = 0;
};