(self, index, relationindex, callback)
| 935 | } |
| 936 | |
| 937 | function updDocumentRelation(self, index, relationindex, callback) { |
| 938 | |
| 939 | if (index === relationindex) |
| 940 | throw new Error('FET'); |
| 941 | |
| 942 | var offset = offsetDocument(self, index); |
| 943 | var buf = U.createBufferSize(4); |
| 944 | buf.writeUInt32LE(relationindex); |
| 945 | Fs.write(self.fd, buf, 0, buf.length, offset + 7, callback); |
| 946 | } |
| 947 | |
| 948 | function updDocumentParent(self, index, parentindex, callback) { |
| 949 | var offset = offsetDocument(self, index); |
no test coverage detected