Searched refs:bufP (Results 1 – 2 of 2) sorted by relevance
/libcore/ojluni/src/main/native/ |
D | SocketOutputStream.c | 59 char *bufP; in SocketOutputStream_socketWrite0() local 80 bufP = BUF; in SocketOutputStream_socketWrite0() 84 bufP = (char *)malloc((size_t)buflen); in SocketOutputStream_socketWrite0() 87 if (bufP == NULL) { in SocketOutputStream_socketWrite0() 88 bufP = BUF; in SocketOutputStream_socketWrite0() 97 (*env)->GetByteArrayRegion(env, data, off, chunkLen, (jbyte *)bufP); in SocketOutputStream_socketWrite0() 100 int n = NET_Send(fd, bufP + loff, llen, 0); in SocketOutputStream_socketWrite0() 117 if (bufP != BUF) { in SocketOutputStream_socketWrite0() 118 free(bufP); in SocketOutputStream_socketWrite0() 126 if (bufP != BUF) { in SocketOutputStream_socketWrite0() [all …]
|
D | SocketInputStream.c | 59 char *bufP; in SocketInputStream_socketRead0() local 86 bufP = (char *)malloc((size_t)len); in SocketInputStream_socketRead0() 87 if (bufP == NULL) { in SocketInputStream_socketRead0() 88 bufP = BUF; in SocketInputStream_socketRead0() 92 bufP = BUF; in SocketInputStream_socketRead0() 112 if (bufP != BUF) { in SocketInputStream_socketRead0() 113 free(bufP); in SocketInputStream_socketRead0() 119 nread = NET_Read(fd, bufP, len); in SocketInputStream_socketRead0() 147 (*env)->SetByteArrayRegion(env, data, off, nread, (jbyte *)bufP); in SocketInputStream_socketRead0() 150 if (bufP != BUF) { in SocketInputStream_socketRead0() [all …]
|