Elf_LE32_Shdr; set_native16()

p_elf.h p_unix.h

committer: jreiser <jreiser> 1042341777 +0000
This commit is contained in:
John Reiser
2003-01-12 03:22:57 +00:00
parent 5e5ea9f6e4
commit 73dc4eede0
2 changed files with 56 additions and 0 deletions
+9
View File
@@ -68,6 +68,7 @@ protected:
// an endian abstraction here
virtual unsigned get_native32(const void *) = 0;
virtual void set_native32(void *, unsigned) = 0;
virtual void set_native16(void *, unsigned) = 0;
virtual bool checkCompressionRatio(unsigned, unsigned) const;
@@ -133,6 +134,10 @@ protected:
{
set_be32(b, v);
}
virtual void set_native16(void *b, unsigned v)
{
set_be16(b, v);
}
};
@@ -149,6 +154,10 @@ protected:
{
set_le32(b, v);
}
virtual void set_native16(void *b, unsigned v)
{
set_le16(b, v);
}
};