public virtual Int24 ReadInt24(int magic)
        {
            Int24 int24 = new Int24(BitConverter.ToInt32(ByteSwap(BitConverter.GetBytes(base.ReadInt32())), 0));

            int24.Integer += magic;
            return(int24);
        }
        public virtual string ReadString(Int24 stats)
        {
            long pos = base.BaseStream.Position;

            base.BaseStream.Position = stats.Integer;
            string str = String.Empty;

            for (byte x = 0; x < stats.Byte; x++)
            {
                str += Convert.ToChar(base.ReadByte());
            }
            base.BaseStream.Position = pos;
            return(str);
        }
        public virtual Int24 Append(string data)
        {
            long pos = stream.Position;

            stream.Position = stream.Length;
            Int24 int24 = new Int24(Position, (byte)data.Length);

            stream.SetLength(stream.Length + data.Length + 1);
            for (int x = 0; x < data.Length; x++)
            {
                base.Write(Convert.ToByte(data[x]));
            }
            base.Write((byte)0);
            stream.Position = pos;
            return(int24);
        }
 public virtual void Write(Int24 value)
 {
     this.Write(value.DWord);
 }