Remove the 24 bit read/write methods -- we don't use them anymore and they are weird anyway ;-)

svn-id: r16037
This commit is contained in:
Max Horn 2004-12-11 23:50:39 +00:00
parent e1f6101140
commit 41a7e6674c

View File

@ -61,11 +61,6 @@ public:
writeByte((byte)(value >> 8));
}
void writeUint24LE(uint32 value) {
writeUint16LE((uint16)(value & 0xffff));
writeByte((byte)(value >> 16));
}
void writeUint32LE(uint32 value) {
writeUint16LE((uint16)(value & 0xffff));
writeUint16LE((uint16)(value >> 16));
@ -76,11 +71,6 @@ public:
writeByte((byte)(value & 0xff));
}
void writeUint24BE(uint32 value) {
writeByte((byte)(value >> 16));
writeUint16BE((uint16)(value & 0xffff));
}
void writeUint32BE(uint32 value) {
writeUint16BE((uint16)(value >> 16));
writeUint16BE((uint16)(value & 0xffff));
@ -90,10 +80,6 @@ public:
writeUint16LE((uint16)value);
}
void writeSint24LE(int32 value) {
writeUint24LE((uint32)value);
}
void writeSint32LE(int32 value) {
writeUint32LE((uint32)value);
}
@ -102,10 +88,6 @@ public:
writeUint16BE((uint16)value);
}
void writeSint24BE(int32 value) {
writeUint24BE((uint32)value);
}
void writeSint32BE(int32 value) {
writeUint32BE((uint32)value);
}
@ -149,12 +131,6 @@ public:
return a | (b << 8);
}
uint32 readUint24LE() {
uint32 a = readUint16LE();
uint32 b = readByte();
return (b << 16) | a;
}
uint32 readUint32LE() {
uint32 a = readUint16LE();
uint32 b = readUint16LE();
@ -167,27 +143,16 @@ public:
return a | (b << 8);
}
uint32 readUint24BE() {
uint32 b = readByte();
uint32 a = readUint16BE();
return (b << 16) | a;
}
uint32 readUint32BE() {
uint32 b = readUint16BE();
uint32 a = readUint16BE();
return (b << 16) | a;
}
int16 readSint16LE() {
return (int16)readUint16LE();
}
int32 readSint24LE() {
return (int32)readUint24LE();
}
int32 readSint32LE() {
return (int32)readUint32LE();
}
@ -196,10 +161,6 @@ public:
return (int16)readUint16BE();
}
int32 readSint24BE() {
return (int32)readUint24BE();
}
int32 readSint32BE() {
return (int32)readUint32BE();
}