public BinaryDatabase(string filename, bool readOnly) { m_odb = new GODB(readOnly); m_odb.Open(filename); ReadIds(); }
public OdbStream(GODB odb, long oid) { m_odb = odb; if (!m_odb.ReadOnly && !m_odb.Contains(oid)) m_objectBlock = m_odb.GetEmptyBlock(oid); else m_objectBlock = m_odb.GetObjectBlock(oid); }