7 #ifndef __core_stream_h__ 8 #define __core_stream_h__ 14 void FE_DL_PUBLIC FE_CORE_PORT skip(std::istream &istrm, FE_UWORD cnt);
16 void FE_DL_PUBLIC FE_CORE_PORT output(std::ostream &ostrm,
const String &s);
17 void FE_DL_PUBLIC FE_CORE_PORT output(std::ostream &ostrm, U8 u8);
18 void FE_DL_PUBLIC FE_CORE_PORT output(std::ostream &ostrm, U32 u32);
19 void FE_DL_PUBLIC FE_CORE_PORT output(std::ostream &ostrm, I32 i32);
21 void FE_DL_PUBLIC FE_CORE_PORT input(std::istream &istrm, String &s);
22 void FE_DL_PUBLIC FE_CORE_PORT input(std::istream &istrm, U8 &u8);
23 void FE_DL_PUBLIC FE_CORE_PORT input(std::istream &istrm, U32 &u32);
24 void FE_DL_PUBLIC FE_CORE_PORT input(std::istream &istrm, I32 &i32);
28 void skip(std::istream &istrm, FE_UWORD cnt)
38 void output(std::ostream &ostrm,
const String &s)
44 void output(std::ostream &ostrm, U8 u8)
46 ostrm.write((
char *)&u8,
sizeof(U8));
50 void output(std::ostream &ostrm, U32 u32)
52 U32 n_ul = htonl(u32);
53 ostrm.write((
char *)&n_ul,
sizeof(U32));
57 void output(std::ostream &ostrm, I32 i32)
59 U32 n_ul = htonl(*(U32 *)&i32);
60 ostrm.write((
char *)&n_ul,
sizeof(U32));
64 void input(std::istream &istrm, String &s)
70 void input(std::istream &istrm, U8 &u8)
72 istrm.read((
char *)&u8,
sizeof(U8));
76 void input(std::istream &istrm, U32 &u32)
79 istrm.read((
char *)&n_ul,
sizeof(U32));
84 void input(std::istream &istrm, I32 &i32)
87 istrm.read((
char *)&n_ul,
sizeof(U32));
kernel
Definition: namespace.dox:3