@HLEFunction(nid=0xC58BCD9E,version=150) public int sceNetAdhocMatchingGetMembers(@CheckArgument("checkMatchingId") int matchingId,TPointer32 sizeAddr,@CanBeNull TPointer buf){
  final int matchingMemberSize=12;
  MatchingObject matchingObject=matchingObjects.get(matchingId);
  List<pspNetMacAddress> members=matchingObject.getMembers();
  int size=sizeAddr.getValue();
  sizeAddr.setValue(matchingMemberSize * members.size());
  if (log.isDebugEnabled()) {
    log.debug(String.format("sceNetAdhocMatchingGetMembers returning size=%d",sizeAddr.getValue()));
  }
  if (buf.isNotNull()) {
    int offset=0;
    for (    pspNetMacAddress member : members) {
      if (offset + matchingMemberSize > size || member == null) {
        break;
      }
      if (log.isDebugEnabled()) {
        log.debug(String.format("sceNetAdhocMatchingGetMembers returning %s at 0x%08X",member,buf.getAddress() + offset));
      }
      offset+=4;
      member.write(buf,offset);
      offset+=member.sizeof();
      buf.setValue16(offset,(short)0);
      offset+=2;
    }
    fillNextPointersInLinkedList(buf,offset,matchingMemberSize);
  }
  return 0;
}

@ HLEFunction ( nid = 0xC58BCD9E , version = 150 ) public int sceNetAdhocMatchingGetMembers ( @ CheckArgument ( "checkMatchingId" ) int matchingId , TPointer32 sizeAddr , @ CanBeNull TPointer buf ) { final int matchingMemberSize = 12 ; MatchingObject matchingObject = matchingObjects . get ( matchingId ) ; List < pspNetMacAddress > members = matchingObject . getMembers ( ) ; int size = sizeAddr . getValue ( ) ; sizeAddr . setValue ( matchingMemberSize * members . size ( ) ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( String . format ( "sceNetAdhocMatchingGetMembers returning size=%d" , sizeAddr . getValue ( ) ) ) ; } if ( buf . isNotNull ( ) ) { int offset = 0 ; for ( pspNetMacAddress member : members ) { if ( offset + matchingMemberSize > size || member == null ) { break ; } if ( log . isDebugEnabled ( ) ) { log . debug ( String . format ( "sceNetAdhocMatchingGetMembers returning %s at 0x%08X" , member , buf . getAddress ( ) + offset ) ) ; } offset += 4 ; member . write ( buf , offset ) ; offset += member . sizeof ( ) ; buf . setValue16 ( offset , ( short ) 0 ) ; offset += 2 ; } fillNextPointersInLinkedList ( buf , offset , matchingMemberSize ) ; } return 0 ; }
get a list of matching members
