Beispiel #1
0
 public static CodeV1Header From(BinaryReader rd)
 {
     var code = new CodeV1Header();
     code.CodeSize = rd.ReadInt32();
     code.CellSize = rd.ReadByte();
     code.CodeVersion = rd.ReadByte();
     code.Flags = (CodeV1Flags)rd.ReadUInt16();
     code.main = rd.ReadInt32();
     code.codeoffs = rd.ReadInt32();
     return code;
 }
Beispiel #2
0
        public static CodeV1Header From(BinaryReader rd)
        {
            var code = new CodeV1Header();

            code.CodeSize    = rd.ReadInt32();
            code.CellSize    = rd.ReadByte();
            code.CodeVersion = rd.ReadByte();
            code.Flags       = (CodeV1Flags)rd.ReadUInt16();
            code.main        = rd.ReadInt32();
            code.codeoffs    = rd.ReadInt32();
            return(code);
        }
Beispiel #3
0
 public SmxCodeV1Section(FileHeader file, SectionEntry header)
     : base(file, header)
 {
     ch_ = CodeV1Header.From(file.SectionReader(header));
 }
Beispiel #4
0
 public SmxCodeV1Section(FileHeader file, SectionEntry header)
     : base(file, header)
 {
     ch_ = CodeV1Header.From(file.SectionReader(header));
 }