Example #1
0
 public BinaryDatabase(string filename, bool readOnly)
 {
     m_odb = new GODB(readOnly);
     m_odb.Open(filename);
     ReadIds();
 }
Example #2
0
 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);
 }