}
public static BitSet and(byte[] bytes1, byte[] bytes2) throws IOException
{
DataInputBuffer bufIn = new DataInputBuffer();
bufIn.reset(bytes1, 0, bytes1.length);
CommitLogHeader header1 = serializer.deserialize(bufIn);
bufIn.reset(bytes2, 0, bytes2.length);
CommitLogHeader header2 = serializer.deserialize(bufIn);
header1.and(header2);
return header1.dirty;