// constructor public OffsetTable(MBOBuffer buf) { Debug.Assert(buf.GetLength() == 12); m_buf = buf; DirectoryEntries = new System.Collections.ArrayList(); }
public static bool BinaryEqual(MBOBuffer buf1, MBOBuffer buf2) { bool bEqual = true; if (buf1.GetLength() != buf2.GetLength()) { bEqual = false; } else { byte [] b1 = buf1.GetBuffer(); byte [] b2 = buf2.GetBuffer(); for (int i = 0; i < b1.Length; i++) { if (b1[i] != b2[i]) { bEqual = false; break; } } } return(bEqual); }
public DirectoryEntry(MBOBuffer buf) { Debug.Assert(buf.GetLength() == 16); m_buf = buf; }
public static bool BinaryEqual(MBOBuffer buf1, MBOBuffer buf2) { bool bEqual = true; if (buf1.GetLength() != buf2.GetLength()) { bEqual = false; } else { byte [] b1 = buf1.GetBuffer(); byte [] b2 = buf2.GetBuffer(); for (int i=0; i<b1.Length; i++) { if (b1[i] != b2[i]) { bEqual = false; break; } } } return bEqual; }