/usr/lib/x86_64-linux-gnu/perl5/5.22/Wx/cpp/streams.h is in libwx-perl 1:0.9923-4build3.
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | /////////////////////////////////////////////////////////////////////////////
// Name: cpp/streams.h
// Purpose: wrappers to pass streams from Perl to wxWidgets
// (see also XS/Streams.xs)
// Author: Mattia Barbon
// Modified by:
// Created: 30/03/2001
// RCS-ID: $Id: streams.h 2057 2007-06-18 23:03:00Z mbarbon $
// Copyright: (c) 2001-2002, 2004, 2006 Mattia Barbon
// Licence: This program is free software; you can redistribute it and/or
// modify it under the same terms as Perl itself
/////////////////////////////////////////////////////////////////////////////
#ifndef _WXPERL_STREAMS_H
#define _WXPERL_STREAMS_H
#include <wx/stream.h>
// for wxWidgets use: store a Perl object and
// read from/write to it using wxWidgets functions
class wxPliInputStream:public wxInputStream
{
public:
wxPliInputStream():m_fh( 0 ) {}
wxPliInputStream( SV* fh );
wxPliInputStream( const wxPliInputStream& stream );
~wxPliInputStream();
const wxPliInputStream& operator =( const wxPliInputStream& stream );
protected:
wxFileOffset GetLength() const;
size_t OnSysRead( void* buffer, size_t bufsize );
size_t GetSize() const;
#if WXPERL_W_VERSION_GE( 2, 5, 3 )
wxFileOffset OnSysSeek(wxFileOffset seek, wxSeekMode mode);
wxFileOffset OnSysTell() const;
#else
off_t OnSysSeek(off_t seek, wxSeekMode mode);
off_t OnSysTell() const;
#endif
protected:
SV* m_fh;
};
class wxPliOutputStream:public wxOutputStream
{
public:
wxPliOutputStream():m_fh( 0 ) {}
wxPliOutputStream( SV* fh );
wxPliOutputStream( const wxPliOutputStream& stream );
~wxPliOutputStream();
const wxPliOutputStream& operator = ( const wxPliOutputStream& stream );
protected:
wxFileOffset GetLength() const;
size_t OnSysWrite( const void* buffer, size_t size );
size_t GetSize() const;
#if WXPERL_W_VERSION_GE( 2, 5, 3 )
wxFileOffset OnSysSeek(wxFileOffset seek, wxSeekMode mode);
wxFileOffset OnSysTell() const;
#else
off_t OnSysSeek(off_t seek, wxSeekMode mode);
off_t OnSysTell() const;
#endif
protected:
SV* m_fh;
};
#endif
// _WXPERL_STREAMS_H
// Local variables: //
// mode: c++ //
// End: //
|