Alexandria.Engines.GoldBox.Resources.ScriptFormat.CheckAddress C# (CSharp) Method

CheckAddress() static private method

static private CheckAddress ( BinaryReader reader, long length ) : bool
reader System.IO.BinaryReader
length long
return bool
        static bool CheckAddress(BinaryReader reader, long length)
        {
            int address = reader.ReadUInt16() - Script.AddressOffset;
            return address >= 22 && address < length;
        }