PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "iffInputFile.h"
#include "iffGenericChunk.h"
#include "datagram.h"
#include "datagramIterator.h"
#include "virtualFileSystem.h"
Go to the source code of this file.
Functions | |
PT (IffChunk) IffInputFile | |
Reads a single IffChunk, determining its type based on its ID. More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file iffInputFile.cxx.
PT | ( | IffChunk | ) |
Reads a single IffChunk, determining its type based on its ID.
Similar to get_chunk(), except the chunk size is only a 16-bit number instead of 32-bit, and it takes a context, which is the chunk in which this chunk is encountered.
Allocates and returns a new IffChunk object of the appropriate type. Returns NULL if EOF is reached before the chunk can be read completely, or if there is some other error in reading the chunk.
The parent chunk may (or may not) decide what kind of chunk is meant by the various id's encountered.
Definition at line 211 of file iffInputFile.cxx.
References IffInputFile::get_be_uint32(), IffInputFile::get_bytes_read(), IffInputFile::get_id(), and IffInputFile::is_eof().