Exemple #1
0
        public SectionReference ReadSectionReferenceUnchecked()
        {
            var reference = new SectionReference();

            reference.Section = InputReader.ReadUInt32();
            reference.Offset  = InputReader.ReadUInt32();
            return(reference);
        }
Exemple #2
0
        public SectionReference ReadSectionReferenceUnchecked(BinaryReader reader)
        {
            var reference = new SectionReference();

            reference.Section = reader.ReadUInt32();
            reference.Offset  = reader.ReadUInt32();
            return(reference);
        }
Exemple #3
0
 internal void Seek(SectionReference reference)
 {
     Debug.Assert(reference.IsValid);
     Seek(reference.Section, reference.Offset);
 }
Exemple #4
0
 public bool Equals(SectionReference reference)
 {
     return(reference != null && reference.Section == Section && reference.Offset == Offset);
 }
Exemple #5
0
 public void WriteSectionReference(SectionReference r)
 {
     Writer.Write((UInt32)r.Section);
     Writer.Write(r.Offset);
 }