Slide 6.7: Reclaiming space dynamically Slide 6.9: Variable-length record deletion (cont.) Home |
-1 560 81 12 File Structures: An Object-Oriented Approach with C++ |0201874016|94.80|360| 52 105 Learning WML & WMLScript |1565929470|17.48|12| 62 169 XML in a Nutshell, 2nd Edition|0596002920|39.95|39| 39 243 Java and XSLT |0596001436|26.37|890| 84 294 WAP Servlets: Developing Dynamic Web Content With Java and WML|047139307|32.99|4| 63 390 WAP Development with WML and WMLScript|0672319462|18.99|56| 83 465 Advances in Security and Payment Methods for Mobile Commerce|1591403456|89.95|182| 79 560 M Commerce: Technologies, Services, and Business Models |0471135852|23.09|5|
head/last/offsets
must contain the byte offsets themselves. Each of them takes five bytes.
head+' '+last+'\n'
where the head
is the head (offset) of the avail list
and the last
is the offset of the last record.
length+' '+offset+' '
where
length
is the actual record length including '\n'
but not including the length+' '+offset+' '
, and
offset
is the disk offset right before the length
.
head
, last
, length
, and offset
are not part of records. They are used to implement the variable-length record deletion and are not supposed to be seen by users.