SWFProcessing.SWFModeller.ABCDataTypeReader.ReadInt32 C# (CSharp) Method

ReadInt32() public method

There isn't any 32-bit types in ABC, they're all packed ints. You probably want ReadSI32 or ReadUI32 instead. This is here to allow us to fake reading doubles.
public ReadInt32 ( ) : int
return int
        public int ReadInt32()
        {
            int i, j;

            this.bufferedBits = 0;

            i = this.InputStream.ReadByte();
            i |= this.InputStream.ReadByte() << 8;
            i |= this.InputStream.ReadByte() << 16;
            j = this.InputStream.ReadByte();

            if ((i < 0) || (j < 0))
            {
                throw new SWFModellerException(
                        SWFModellerError.ABCParsing,
                        "Unexpected end of stream");
            }

            this.Offset += 4;

            return i | (j << 24);
        }