aboutsummaryrefslogtreecommitdiff
path: root/src/nids.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nids.h')
-rw-r--r--src/nids.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nids.h b/src/nids.h
index d297fa1..63d7061 100644
--- a/src/nids.h
+++ b/src/nids.h
@@ -65,6 +65,10 @@ namespace Bu
65 NidsStream openStream( int iID ); 65 NidsStream openStream( int iID );
66 66
67 int getBlockSize(); 67 int getBlockSize();
68 int getNumBlocks();
69 int getNumUsedBlocks();
70 int getBlockStart();
71 int getBlockOverhead();
68 72
69 private: 73 private:
70 typedef struct Block 74 typedef struct Block
@@ -92,6 +96,8 @@ namespace Bu
92 uint32_t getNextBlock( uint32_t uIndex, struct Nids::Block *pBlock, 96 uint32_t getNextBlock( uint32_t uIndex, struct Nids::Block *pBlock,
93 bool bCreate=true); 97 bool bCreate=true);
94 98
99 void updateHeader();
100
95 // Block allocation routines 101 // Block allocation routines
96 Block *newBlock(); 102 Block *newBlock();
97 void deleteBlock( Block *pBlock ); 103 void deleteBlock( Block *pBlock );
@@ -101,6 +107,7 @@ namespace Bu
101 int iBlockSize; 107 int iBlockSize;
102 int iBlocks; 108 int iBlocks;
103 int iBlockStart; 109 int iBlockStart;
110 int iUsed;
104 Bu::BitString bsBlockUsed; 111 Bu::BitString bsBlockUsed;
105 }; 112 };
106}; 113};