87 public static Sector
decode(ByteBuffer buffer,
byte[] data,
int offset,
int length) {
88 int indexId = buffer.getShort() & 0xFFFF;
89 int chunk = buffer.getShort() & 0xFFFF;
90 int nextIndexId = ByteBufferUtil.getMedium(buffer);
91 int cacheId = buffer.get() & 0xFF;
92 buffer.get(data, offset, length);
93 return new Sector(indexId, chunk, nextIndexId, cacheId);