28class EXPCL_DTOOL_PRC StreamReader {
30 INLINE StreamReader(std::istream &in);
32 INLINE
explicit StreamReader(std::istream *in,
bool owns_stream);
33 INLINE StreamReader(
const StreamReader ©);
34 INLINE
void operator = (
const StreamReader ©);
35 INLINE ~StreamReader();
68 BLOCKING
size_t extract_bytes(
unsigned char *into,
size_t size);
72 EXTENSION(PyObject *readlines());
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
uint8_t get_uint8()
Extracts an unsigned 8-bit integer.
int32_t get_be_int32()
Extracts a signed big-endian 32-bit integer.
uint16_t get_uint16()
Extracts an unsigned 16-bit integer.
std::string get_string32()
Extracts a variable-length string with a 32-bit length field.
int16_t get_int16()
Extracts a signed 16-bit integer.
float get_float32()
Extracts a 32-bit single-precision floating-point number.
bool get_bool()
Extracts a boolean value.
uint16_t get_be_uint16()
Extracts an unsigned big-endian 16-bit integer.
int64_t get_be_int64()
Extracts a signed big-endian 64-bit integer.
std::string get_string()
Extracts a variable-length string.
int8_t get_int8()
Extracts a signed 8-bit integer.
uint64_t get_uint64()
Extracts an unsigned 64-bit integer.
PN_float64 get_float64()
Extracts a 64-bit floating-point number.
std::string get_fixed_string(size_t size)
Extracts a fixed-length string.
int32_t get_int32()
Extracts a signed 32-bit integer.
int16_t get_be_int16()
Extracts a signed big-endian 16-bit integer.
std::string readline()
Assumes the stream represents a text file, and extracts one line up to and including the trailing new...
void skip_bytes(size_t size)
Skips over the indicated number of bytes in the stream.
uint64_t get_be_uint64()
Extracts an unsigned big-endian 64-bit integer.
size_t extract_bytes(unsigned char *into, size_t size)
Extracts the indicated number of bytes in the stream into the given character buffer.
PN_float64 get_be_float64()
Extracts a 64-bit big-endian floating-point number.
int64_t get_int64()
Extracts a signed 64-bit integer.
std::string get_z_string()
Extracts a variable-length string, as a NULL-terminated string.
uint32_t get_uint32()
Extracts an unsigned 32-bit integer.
float get_be_float32()
Extracts a 32-bit single-precision big-endian floating-point number.
get_istream
Returns the stream in use.
uint32_t get_be_uint32()
Extracts an unsigned big-endian 32-bit integer.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.