14 #ifndef STREAMREADER_H 15 #define STREAMREADER_H 32 INLINE
explicit StreamReader(std::istream *in,
bool owns_stream);
37 INLINE std::istream *get_istream()
const;
38 MAKE_PROPERTY(std::istream, get_istream);
40 BLOCKING INLINE
bool get_bool();
41 BLOCKING INLINE int8_t get_int8();
42 BLOCKING INLINE uint8_t get_uint8();
44 BLOCKING INLINE int16_t get_int16();
45 BLOCKING INLINE int32_t get_int32();
46 BLOCKING INLINE int64_t get_int64();
47 BLOCKING INLINE uint16_t get_uint16();
48 BLOCKING INLINE uint32_t get_uint32();
49 BLOCKING INLINE uint64_t get_uint64();
50 BLOCKING INLINE
float get_float32();
51 BLOCKING INLINE PN_float64 get_float64();
53 BLOCKING INLINE int16_t get_be_int16();
54 BLOCKING INLINE int32_t get_be_int32();
55 BLOCKING INLINE int64_t get_be_int64();
56 BLOCKING INLINE uint16_t get_be_uint16();
57 BLOCKING INLINE uint32_t get_be_uint32();
58 BLOCKING INLINE uint64_t get_be_uint64();
59 BLOCKING INLINE
float get_be_float32();
60 BLOCKING INLINE PN_float64 get_be_float64();
62 BLOCKING std::string get_string();
63 BLOCKING std::string get_string32();
64 BLOCKING std::string get_z_string();
65 BLOCKING std::string get_fixed_string(
size_t size);
67 BLOCKING
void skip_bytes(
size_t size);
68 BLOCKING
size_t extract_bytes(
unsigned char *into,
size_t size);
69 EXTENSION(BLOCKING PyObject *extract_bytes(
size_t size));
71 EXTENSION(BLOCKING PyObject *readline());
72 EXTENSION(BLOCKING PyObject *readlines());
75 BLOCKING vector_uchar extract_bytes(
size_t size);
76 BLOCKING std::string readline();
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to read sequential binary data directly from an istream.