Beispiel #1
0
 internal GDFEntry(GDFEntry xIn)
 {
     xref        = xIn.xref;
     xName       = xIn.xName;
     xSize       = xIn.xSize;
     Atts        = xIn.Atts;
     xStartBlock = xIn.xStartBlock;
 }
Beispiel #2
0
        internal GDFEntry(GDFImage xIn)
        {
            DJsIO xIO = xIn.xIO;

            entryoffset = xIO.Position;
            xStartBlock = xIO.ReadUInt32(false);
            xSize       = xIO.ReadInt32(false);
            Atts        = (GDFAttributes)xIO.ReadByte();
            byte nlen = xIO.ReadByte();

            if (nlen != 0xFF)
            {
                xName = xIO.ReadString(StringForm.ASCII, nlen);
            }
            if (!VariousFunctions.IsValidXboxName(xName))
            {
                throw new Exception("Invalid Name");
            }
            xref = xIn;
        }
Beispiel #3
0
 internal GDFEntry(GDFImage xIn)
 {
     DJsIO xIO = xIn.xIO;
     entryoffset = xIO.Position;
     xStartBlock = xIO.ReadUInt32(false);
     xSize = xIO.ReadInt32(false);
     Atts = (GDFAttributes)xIO.ReadByte();
     byte nlen = xIO.ReadByte();
     if (nlen != 0xFF)
         (xName = xIO.ReadString(StringForm.ASCII, nlen)).IsValidXboxName();
     if (xName == "")
         throw new Exception("No Name");
     xName.IsValidXboxName();
     xref = xIn;
 }
Beispiel #4
0
 internal GDFEntry(GDFEntry xIn)
 {
     xref = xIn.xref;
     xName = xIn.xName;
     xSize = xIn.xSize;
     Atts = xIn.Atts;
     xStartBlock = xIn.xStartBlock;
 }
 internal GDFEntry(GDFImage xIn)
 {
     DJsIO xIO = xIn.xIO;
     entryoffset = xIO.Position;
     xStartBlock = xIO.ReadUInt32(false);
     xSize = xIO.ReadInt32(false);
     Atts = (GDFAttributes)xIO.ReadByte();
     byte nlen = xIO.ReadByte();
     if (nlen != 0xFF)
     {
         xName = xIO.ReadString(StringForm.ASCII, nlen);
     }
     if (!VariousFunctions.IsValidXboxName(xName))
     {
         throw new Exception("Invalid Name");
     }
     xref = xIn;
 }