libcutils/mq.c
static void peerProxyExpectBytes(PeerProxy* peerProxy, Header* header) {
	LOGD("Expecting %d bytes.", header->size);
	
	peerProxy->inputState = READING_BYTES;
    if (bufferPrepareForRead(peerProxy->inputBuffer, header->size) == -1) {
        LOGW("Couldn't allocate memory for incoming data. Size: %u",
                (unsigned int) header->size);    
        
        // TODO: Ignore the packet and log a warning?
        peerProxyKill(peerProxy, false);
    }
}
/** Prepare to read bytes from the peer. */
Prepare to read bytes from the peer.
Prepare to read bytes from the peer .
static void peerProxyExpectBytes(PeerProxy* peerProxy, Header* header) {
	LOGD("Expecting %d bytes.", header->size);
	peerProxy->inputState = READING_BYTES;
    if (bufferPrepareForRead(peerProxy->inputBuffer, header->size) == -1) {
        LOGW("Couldn't allocate memory for incoming data. Size: %u",
                (unsigned int) header->size);    
        peerProxyKill(peerProxy, false);
    }
}
static void peerProxyExpectBytes ( PeerProxy * peerProxy , Header * header ) { LOGD ( " " , header -> size ) ; peerProxy -> inputState = READING_BYTES ; if ( bufferPrepareForRead ( peerProxy -> inputBuffer , header -> size ) == -1 ) { LOGW ( " " , ( unsigned int ) header -> size ) ; peerProxyKill ( peerProxy , false ) ; } }
Prepare to read bytes from the peer.
Prepare to read bytes from the peer .
// TODO: Ignore the packet and log a warning?