79 static std::ostream &
writeBool (std::ostream & streamref,
bool value);
83 static std::ostream &
writeString (std::ostream & streamref,
const std::string & stringref);
91 static std::ostream &
writeCharp (std::ostream & streamref,
const char * charp);
95 static std::ostream &
writeBytep (std::ostream & streamref,
const unsigned char * bytep,
unsigned int len);
99 static std::ostream &
writeInt32 (std::ostream &
str,
const u_int32_t value);
103 static std::ostream &
writeType (std::ostream &
str, constTypePtr type);
141 static std::ostream &
writeEntry (std::ostream &
str,
const SymbolEntryPtr entry);
155 static YBlockPtr
readModule (
const string & mname);
158 static YCodePtr
readFile (
const string & filename);
161 static bool writeFile (
const YCodePtr code,
const string & filename);
static YBlockPtr readModule(const string &mname)
Definition: Bytecode.cc:1074
static std::ostream & writeBool(std::ostream &streamref, bool value)
Definition: Bytecode.cc:152
static void namespaceInit()
Definition: Bytecode.cc:132
static std::ostream & writeUstring(std::ostream &streamref, const Ustring ustringref)
Definition: Bytecode.cc:254
static std::ostream & writeBytep(std::ostream &streamref, const unsigned char *bytep, unsigned int len)
Definition: Bytecode.cc:315
#define str
Definition: scanner.cc:997
static int tareStack()
Definition: Bytecode.cc:716
static std::ostream & writeType(std::ostream &str, constTypePtr type)
Definition: Bytecode.cc:343
static int m_namespace_nesting_array_size
Definition: Bytecode.h:58
static SymbolEntryPtr readEntry(bytecodeistream &str)
Definition: Bytecode.cc:763
bool isVersionAtMost(int major, int minor, int revision)
Definition: Bytecode.cc:103
bytecodeistream(string filename)
Definition: Bytecode.cc:68
bool isVersion(int major, int minor, int revision)
Definition: Bytecode.cc:96
static YCodePtr readFile(const string &filename)
Definition: Bytecode.cc:1130
static YCodePtr readCode(bytecodeistream &str)
Definition: Bytecode.cc:823
static bool readBool(bytecodeistream &streamref)
Definition: Bytecode.cc:159
static std::ostream & writeCharp(std::ostream &streamref, const char *charp)
Definition: Bytecode.cc:285
const Y2Namespace * name_space
Definition: Bytecode.h:63
static void popUptoNamespace(const Y2Namespace *name_space)
Definition: Bytecode.cc:684
static std::ostream & writeEntry(std::ostream &str, const SymbolEntryPtr entry)
Definition: Bytecode.cc:746
static std::ostream & writeString(std::ostream &streamref, const std::string &stringref)
Definition: Bytecode.cc:220
static int pushNamespace(const Y2Namespace *name_space, bool with_xrefs=false)
Definition: Bytecode.cc:620
int m_major
Definition: Bytecode.h:44
static YCPValue readValue(bytecodeistream &str)
Definition: Bytecode.cc:420
static std::ostream & writeYCodelist(std::ostream &str, const ycodelist_t *codelist)
Definition: Bytecode.cc:507
static const Y2Namespace * namespacePtr(int namespace_id)
Definition: Bytecode.cc:602
static map< string, YBlockPtr > * m_bytecodeCache
Definition: Bytecode.h:67
static char * readCharp(bytecodeistream &streamref)
Definition: Bytecode.cc:294
static bool readString(bytecodeistream &streamref, std::string &stringref)
Definition: Bytecode.cc:230
int minor() const
Definition: Bytecode.h:51
Unique strings.
Definition: Ustring.h:124
static int m_namespace_tare_level
Definition: Bytecode.h:59
static std::ostream & writeInt32(std::ostream &str, const u_int32_t value)
Definition: Bytecode.cc:179
bool with_xrefs
external references... ???
Definition: Bytecode.h:64
static std::ostream & writeValue(std::ostream &str, const YCPValue value)
Definition: Bytecode.cc:399
static TypePtr readType(bytecodeistream &str)
Definition: Bytecode.cc:350
references to namespaces
Definition: Bytecode.h:62
static void untareStack(int tare_id)
Definition: Bytecode.cc:728
int release() const
Definition: Bytecode.h:52
int m_minor
Definition: Bytecode.h:44
static bool writeFile(const YCodePtr code, const string &filename)
Definition: Bytecode.cc:1176
*.ybc I/O
Definition: Bytecode.h:56
int m_release
Definition: Bytecode.h:44
int major() const
Definition: Bytecode.h:50
static int m_namespace_nesting_level
Definition: Bytecode.h:57
static bool readYCodelist(bytecodeistream &str, ycodelist_t **anchor)
Definition: Bytecode.cc:541
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
Definition: Y2Namespace.h:43
static u_int32_t readInt32(bytecodeistream &str)
Definition: Bytecode.cc:190
static int popNamespace(const Y2Namespace *name_space)
Definition: Bytecode.cc:651
Definition: Bytecode.h:76
An istream that remembers some data about the bytecode.
Definition: Bytecode.h:42
static namespaceentry_t * m_namespace_nesting_array
Definition: Bytecode.h:66
static Ustring readUstring(bytecodeistream &streamref)
Definition: Bytecode.cc:264
static int namespaceId(const Y2Namespace *name_space)
Definition: Bytecode.cc:586
static unsigned char * readBytep(bytecodeistream &streamref)
Definition: Bytecode.cc:323