Exemplo n.º 1
0
 sp<Retval> HttpChunked::read(unsigned* out, char* b, unsigned s){
     sp<Retval> retval;
     if( DFW_RET(retval, readSub(out, b, s)) ){
         if(retval->value() == DFW_T_CHUNKED_END){ 
             return NULL;
         }
         return DFW_RETVAL_D(retval);
     }
     return NULL;
 }
Exemplo n.º 2
0
void HwMesh::loadStatic()
{
    isAnimated = false;
    DWORD tmp;

    while (true)
    {
        f->read((char *)&tmp, sizeof(DWORD));
        if (tmp == HWMT_SUB)
            readSub();
        else
            break;
    }
}