This file is indexed.

/usr/include/sp/RewindStorageObject.h is in libsp1-dev 1.3.4-1.2.1-49ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef RewindStorageObject_INCLUDED
#define RewindStorageObject_INCLUDED 1

#include "StorageManager.h"
#include "Boolean.h"
#include "StringOf.h"

#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif

class Messenger;

class SP_API RewindStorageObject : public StorageObject {
public:
  RewindStorageObject(Boolean mayRewind, Boolean canSeek);
protected:
  PackedBoolean mayRewind_;

  void saveBytes(const char *, size_t);
  Boolean readSaved(char *, size_t, size_t &);
  Boolean rewind(Messenger &);
  void willNotRewind();
  void unread(const char *s, size_t n);
  virtual Boolean seekToStart(Messenger &) = 0;
private:
  PackedBoolean savingBytes_;
  PackedBoolean readingSaved_;
  PackedBoolean canSeek_;
  String<char> savedBytes_;
  size_t nBytesRead_;
};

inline
void RewindStorageObject::saveBytes(const char *s, size_t n)
{
  if (savingBytes_)
    savedBytes_.append(s, n);
}

#ifdef SP_NAMESPACE
}
#endif

#endif /* not RewindStorageObject_INCLUDED */