Panda3D

Public Member Functions | Friends | List of all members
PandaIOStream Class Reference

Custom implementation of Assimp::IOStream. More...

`#include "pandaIOStream.h"`

Inheritance diagram for PandaIOStream:

## Public Member Functions
| PandaIOStream (std::istream &stream)
size_t | FileSize () const
| Returns the size of this file. More...
void | Flush ()
| See fflush. More...
size_t | Read (void *pvBuffer, size_t pSize, size_t pCount)
| See fread. More...
aiReturn | Seek (size_t pOffset, aiOrigin pOrigin)
| See fseek. More...
size_t | Tell () const
| See ftell. More...
size_t | Write (const void *buffer, size_t size, size_t count)
| See fwrite. More...

## Friends
class | PandaIOSystem

## Detailed Description

Custom implementation of Assimp::IOStream.

It simply wraps around an istream object, and is unable to write.

Definition at line 27 of file pandaIOStream.h.

## Member Function Documentation

## ◆ FileSize()

size_t PandaIOStream::FileSize | ( |  | ) | const

Returns the size of this file.

Definition at line 28 of file pandaIOStream.cxx.

## ◆ Flush()

void PandaIOStream::Flush | ( | void |  | ) |

See fflush.

Definition at line 40 of file pandaIOStream.cxx.

## ◆ Read()

size_t PandaIOStream::Read | ( | void * | pvBuffer,
|  | size_t | pSize,
|  | size_t | pCount
| ) |  |

See fread.

Definition at line 48 of file pandaIOStream.cxx.

## ◆ Seek()

aiReturn PandaIOStream::Seek | ( | size_t | pOffset,
|  | aiOrigin | pOrigin
| ) |  |

See fseek.

Definition at line 57 of file pandaIOStream.cxx.

## ◆ Tell()

size_t PandaIOStream::Tell | ( |  | ) | const

See ftell.

Definition at line 88 of file pandaIOStream.cxx.

## ◆ Write()

size_t PandaIOStream::Write | ( | const void * | buffer,
|  | size_t | size,
|  | size_t | count
| ) |  |

See fwrite.

Definition at line 96 of file pandaIOStream.cxx.

The documentation for this class was generated from the following files:

- pandatool/src/assimp/pandaIOStream.h
- pandatool/src/assimp/pandaIOStream.cxx