public byte[] pack(){
  if (entries.size() == 0)   return null;
  int entryLength=owner.getType().NODES_ENTRY_LENGTH;
  byte[] buffer=new byte[entries.size() * entryLength];
  int max_items=buffer.length / 26;
  int j=0;
  for (  KBucketEntry e : entries) {
    if (j >= max_items) {
      break;
    }
    PackUtil.PackBucketEntry(e,buffer,j * entryLength,owner.getType());
    j++;
  }
  return buffer;
}

public byte [ ] pack ( ) { if ( entries . size ( ) == 0 ) return null ; int entryLength = owner . getType ( ) . NODES_ENTRY_LENGTH ; byte [ ] buffer = new byte [ entries . size ( ) * entryLength ] ; int max_items = buffer . length / 26 ; int j = 0 ; for ( KBucketEntry e : entries ) { if ( j >= max_items ) { break ; } PackUtil . PackBucketEntry ( e , buffer , j * entryLength , owner . getType ( ) ) ; j ++ ; } return buffer ; }
packs the results in a byte array .
