This file is indexed.

/usr/include/ossim/base/ossimByteStreamBuffer.h is in libossim-dev 1.8.16-3+b1.

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//----------------------------------------------------------------------------
//
// License:  See top level LICENSE.txt file.
//
// File: ossim-foo.cpp
//
// Author:  Garrett Potts
//
// Description: This is a basic_streambuf that can be used for binary in memory streams
//
//
// $Id$
//----------------------------------------------------------------------------
#ifndef ossimByteStreamBuffer_HEADER
#define ossimByteStreamBuffer_HEADER
#include <ossim/base/ossimConstants.h>
#include <cstdio> /* for EOF */
#include <streambuf>
#include <iosfwd>
#include <ios>

//using namespace std;
class OSSIM_DLL ossimByteStreamBuffer : public std::basic_streambuf<char, std::char_traits<char> >
{
public:
   ossimByteStreamBuffer();
    
   ossimByteStreamBuffer(char_type* buf, ossim_int64 bufSize, bool shared=true);
    
   ossimByteStreamBuffer(const ossimByteStreamBuffer& src);
   virtual ~ossimByteStreamBuffer();
   virtual std::streambuf* setbuf ( char_type * s, std::streamsize n );
   void clear();
   // added so we can set a buffer and make it shared
   std::streambuf* setBuf(char* buf, std::streamsize bufSize, bool shared);
   virtual int overflow( int c = EOF);
   /**
    * Returns a pointer to the buffer
    */
   char_type* buffer();
   const char_type* buffer()const;
    
   /**
    * The buffer is no longer managed by this stream buffer and is removed.
    */
   char_type* takeBuffer();
   ossim_uint64 bufferSize()const;
    
protected:
   virtual int_type pbackfail(int_type __c  = traits_type::eof());
   virtual pos_type seekoff(off_type offset, std::ios_base::seekdir dir,
                            std::ios_base::openmode __mode = std::ios_base::in | std::ios_base::out);
   virtual pos_type seekpos(pos_type pos, std::ios_base::openmode __mode = std::ios_base::in | std::ios_base::out);
   virtual std::streamsize xsgetn(char_type* __s, std::streamsize __n);
   virtual std::streamsize xsputn(const char_type* __s, std::streamsize __n);
    
    
   void deleteBuffer();
   void extendBuffer(ossim_uint64 bytes);

   char_type* m_buffer;
   ossim_int64 m_bufferSize;
   bool m_sharedBuffer;
};

#endif