diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-01-27 21:45:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-27 21:45:03 +0000 |
commit | 67ec9d667ab0c3f2258f6f69308d0731e74a74d0 (patch) | |
tree | eaaccf38aeecbb22b06b0156a40cf0dbb66c7bdc /src/nids.h | |
parent | 00bb8c39b97638c872ebccc6aee7f3c5fb57d7d6 (diff) | |
download | libbu++-67ec9d667ab0c3f2258f6f69308d0731e74a74d0.tar.gz libbu++-67ec9d667ab0c3f2258f6f69308d0731e74a74d0.tar.bz2 libbu++-67ec9d667ab0c3f2258f6f69308d0731e74a74d0.tar.xz libbu++-67ec9d667ab0c3f2258f6f69308d0731e74a74d0.zip |
Nids is even better, all fixed, no problems. And you can define you're own
creator functions for the cache store...soon, you'll also be able to define
you're own loader/writer functions, but the default will still work exactly
like this.
I also did more work on nidstool, I think I may actually have to create a
tools dir that will just compile some executables for the libbu++ root, because
this thing is handy. You can get info on the system, trace streams' blocks,
and I'm working on an analysis function that will help you figure out how to
optomize your nids files. Plus, it'll have a function soon for re-writing a
nids stream, which will let you change the block size, defragment, and remove
unused blocks.
Diffstat (limited to 'src/nids.h')
-rw-r--r-- | src/nids.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -75,9 +75,9 @@ namespace Bu | |||
75 | { | 75 | { |
76 | uint32_t uFirstBlock; | 76 | uint32_t uFirstBlock; |
77 | uint32_t uNextBlock; | 77 | uint32_t uNextBlock; |
78 | uint32_t uPrevBlock; | 78 | // uint32_t uPrevBlock; |
79 | uint32_t uBytesUsed; | 79 | uint32_t uBytesUsed; |
80 | uint32_t uReserved; | 80 | // uint32_t uReserved; |
81 | unsigned char pData[0]; | 81 | unsigned char pData[0]; |
82 | } Block; | 82 | } Block; |
83 | 83 | ||
@@ -87,8 +87,8 @@ namespace Bu | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | void initBlock( uint32_t uPos, uint32_t uFirstBlock, | 89 | void initBlock( uint32_t uPos, uint32_t uFirstBlock, |
90 | uint32_t uPrevBlock, bool bNew=false ); | 90 | /*uint32_t uPrevBlock,*/ bool bNew=false ); |
91 | uint32_t createBlock( uint32_t uFirstBlock, uint32_t uPrevBlock, | 91 | uint32_t createBlock( uint32_t uFirstBlock, /*uint32_t uPrevBlock,*/ |
92 | int iPreAllocate=1 ); | 92 | int iPreAllocate=1 ); |
93 | void getBlock( uint32_t uIndex, struct Nids::Block *pBlock ); | 93 | void getBlock( uint32_t uIndex, struct Nids::Block *pBlock ); |
94 | void setBlock( uint32_t uIndex, struct Nids::Block *pBlock ); | 94 | void setBlock( uint32_t uIndex, struct Nids::Block *pBlock ); |