public int EReadInt24() { int result = 0; for (int x = 0; x < 3; x++) result = result << 8 | ReadByte(); return result; }