1 21 package com.db4o; 22 23 30 public class MetaIndex implements Internal4{ 31 32 36 public int indexAddress; 37 public int indexEntries; 38 public int indexLength; 39 40 private final int patchAddress = 0; 43 private final int patchEntries = 0; 44 private final int patchLength = 0; 45 46 public void read(YapReader reader){ 47 indexAddress = reader.readInt(); 48 indexEntries = reader.readInt(); 49 indexLength = reader.readInt(); 50 51 reader.readInt(); 53 reader.readInt(); 54 reader.readInt(); 55 } 56 57 public void write(YapReader writer){ 58 writer.writeInt(indexAddress); 59 writer.writeInt(indexEntries); 60 writer.writeInt(indexLength); 61 writer.writeInt(patchAddress); 62 writer.writeInt(patchEntries); 63 writer.writeInt(patchLength); 64 } 65 66 public void free(YapFile file){ 67 file.free(indexAddress, indexLength); 68 indexAddress = 0; 69 indexLength = 0; 70 } 74 } 75 | Popular Tags |