コード例 #1
0
int OpenSessionResponse::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read length
    {
        length=(istream.readUI8());
        retVal+=1;
    }
    // read resourceIdentifier
    {
        resourceIdentifier=istream.readUI32() ;
        retVal+=4;
    }
    // read sessionStatus
    {
        sessionStatus=(istream.readUI8());
        retVal+=1;
    }
    // read sessionNb
    {
        sessionNb=istream.readUI16();
        retVal+=2;
    }

    return retVal;
}
コード例 #2
0
int network_information_table_section::subtable::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read firstIndex
    {
        firstIndex=(istream.readUI8());
        retVal+=1;
    }
    // read numberOfRecords
    {
        numberOfRecords=(istream.readUI8());
        retVal+=1;
    }
    // read bf3
    bf3= istream.readUI8();
    retVal += 1;
    // read records
    for (int iIdx=0; iIdx <(numberOfRecords + (0)); iIdx++) {
        org_himalay_si_network_information_table_section_subtable_Record__PTR_TYPE temp;
        org_himalay_si_network_information_table_section_subtable_Record__NEW( temp);
        temp->parent=this;
        retVal += temp->read(istream);
        records.add(temp);
    }
    // read descriptor
    if ( (parent->tableHeader->getSection_length() - (retVal- 2) -4)  > 0 ) {
        org_himalay_si_Descriptors__NEW( descriptor);
        retVal += descriptor->read(istream);
    }

    return retVal;
}
コード例 #3
0
int codeVersionTable1_3::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read header
    retVal += header->read(istream);
    // read length
    {
        length=(istream.readUI8());
        retVal+=1;
    }
    // read configurationCountChange
    {
        configurationCountChange=(istream.readUI8());
        retVal+=1;
    }
    // read statusField
    {
        statusField=(istream.readUI8());
        retVal+=1;
    }
    // read pgmmsg
    for (; istream.available() > 0 ; ) {
        org_himalay_ccif_codeVersionTableMsg__PTR_TYPE temp;
        org_himalay_ccif_codeVersionTableMsg__NEW( temp);
        retVal += temp->read(istream);
        pgmmsg.add(temp);
    }
    // read bf1
    bf1= istream.readUI8();
    retVal += 1;
    // read statusfldInstance
    if (getDownload_type()==0x00) {
        org_himalay_ccif_codeVersionTable1_3_statusfld__NEW( statusfldInstance);
        statusfldInstance->parent=this;
        retVal += statusfldInstance->read(istream);
    }
    // read statusfld2Instance
    if (getDownload_type()==0x01) {
        org_himalay_ccif_codeVersionTable1_3_statusfld2__NEW( statusfld2Instance);
        statusfld2Instance->parent=this;
        retVal += statusfld2Instance->read(istream);
    }
    // read statusfld3Instance
    if (getDownload_type()==0x02) {
        org_himalay_ccif_codeVersionTable1_3_statusfld3__NEW( statusfld3Instance);
        statusfld3Instance->parent=this;
        retVal += statusfld3Instance->read(istream);
    }
    // read codeFileByte
    {
        retVal+=codeFileByte->read(istream);
    }
    // read codeVeriFicationCertiFication
    retVal += codeVeriFicationCertiFication->read(istream);

    return retVal;
}
コード例 #4
0
int DSG_packetError::readNoHeader(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;

    // length
    {
        length=(istream.readUI8());
        retVal+=1;
    }
    // transaction_id
    {
        transaction_id=(istream.readUI8());
        retVal+=1;
    }
    return retVal;
}
コード例 #5
0
int CloseMmiCnf::readNoHeader(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;

    // length
    {
        length=(istream.readUI8());
        retVal+=1;
    }
    // dialogNumber
    {
        dialogNumber=(istream.readUI8());
        retVal+=1;
    }
    return retVal;
}
コード例 #6
0
int codeVersionTable1_3::statusfld2::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read mcAddress
    retVal += mcAddress->read(istream);
    // read sourceIpAddress
    retVal += sourceIpAddress->read(istream);
    // read destinationIpAddress
    retVal += destinationIpAddress->read(istream);
    // read sourcePortNumber
    {
        sourcePortNumber=istream.readUI16();
        retVal+=2;
    }
    // read destinatioPortNumber
    {
        destinatioPortNumber=istream.readUI16();
        retVal+=2;
    }
    // read applicationId
    {
        applicationId=istream.readUI16();
        retVal+=2;
    }
    // read modulationType
    {
        modulationType=(istream.readUI8());
        retVal+=1;
    }
    // read bf2
    bf2= istream.readUI16();
    retVal += 2;

    return retVal;
}
コード例 #7
0
int CloseMmiCnf::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read header
    retVal += header->read(istream);
    // read length
    {
        length=(istream.readUI8());
        retVal+=1;
    }
    // read dialogNumber
    {
        dialogNumber=(istream.readUI8());
        retVal+=1;
    }

    return retVal;
}
コード例 #8
0
int HomingCancelled::readNoHeader(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;

    // length
    {
        length=(istream.readUI8());
        retVal+=1;
    }
    return retVal;
}
コード例 #9
0
int HomingCancelled::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read header
    retVal += header->read(istream);
    // read length
    {
        length=(istream.readUI8());
        retVal+=1;
    }

    return retVal;
}
コード例 #10
0
int diagnosticReq_2_Smode::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read length
    {
        length=(istream.readUI8());
        retVal+=1;
    }
    // read selfDiagnostics
    {
        retVal+=selfDiagnostics->read(istream);
    }

    return retVal;
}
コード例 #11
0
int HistoryReq::readNoHeader(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;

    // length
    {
        length=(istream.readUI8());
        retVal+=1;
    }
    // pincodeLength
    {
        retVal+=pincodeLength->read(istream);
    }
    return retVal;
}
コード例 #12
0
int DescriptorCollection::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read descriptor_count
    {
        descriptor_count=(istream.readUI8());
        retVal+=1;
    }
    // read descriptors
    for (int iIdx=0; iIdx <(descriptor_count + (0)); iIdx++) {
        org_himalay_si_SCTE65DescriptorFactory_SCTE65Descriptor__PTR_TYPE  temp;    /* Generic classes are abstract, so we can not invoke new*/    {
            int iHolder= 0;
            DataInputStream* disTemp = &istream;
            temp = SCTE65DescriptorFactory::createMsg(*disTemp,iHolder);
            retVal += iHolder;
        }
        descriptors.add(temp);
    }

    return retVal;
}
コード例 #13
0
int network_information_table_section::readNoHeader(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;

    // bf2
    bf2= istream.readUI8();
    retVal += 1;
    // subtableInstance
    {
        ui8* ba= new ui8[tableHeader->getSection_length()+(-5)];
        int iCount = istream.read(ba,tableHeader->getSection_length()+(-5));
        ByteArrayDataInputStream* bais= new ByteArrayDataInputStream(ba,0,iCount );
        retVal += subtableInstance->read(*bais);
        delete bais;
    }
    // CRC
    {
        CRC=istream.readUI32() ;
        retVal+=4;
    }
    return retVal;
}
コード例 #14
0
int softwareVerMMsg::read(DataInputStream&  istream ) { // throws IOException
    int retVal = 0;
    // read ApplicationStatusflag
    {
        ApplicationStatusflag=(istream.readUI8());
        retVal+=1;
    }
    // read applicationNameByte
    {
        retVal+=applicationNameByte->read(istream);
    }
    // read applicationSignbyte
    {
        retVal+=applicationSignbyte->read(istream);
    }
    // read applicationVersionbyte
    {
        retVal+=applicationVersionbyte->read(istream);
    }

    return retVal;
}