Searched refs:amount (Results 1 - 25 of 49) sorted by relevance

12

/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/
H A Drcio.h85 PRSize amount, const RCInterval& timeout) = 0;
100 virtual PRInt32 Read(void *buf, PRSize amount) = 0;
102 void *buf, PRSize amount, PRIntn flags,
105 void *buf, PRSize amount, PRIntn flags,
109 const void *buf, PRSize amount, PRIntn flags,
112 const void *buf, PRSize amount, PRIntn flags,
121 virtual PRInt32 Write(const void *buf, PRSize amount) = 0;
H A Drcnetio.h73 PRSize amount, const RCInterval& timeout);
83 virtual PRInt32 Read(void *buf, PRSize amount);
85 void *buf, PRSize amount, PRIntn flags,
88 void *buf, PRSize amount, PRIntn flags,
91 const void *buf, PRSize amount, PRIntn flags,
94 const void *buf, PRSize amount, PRIntn flags,
103 virtual PRInt32 Write(const void *buf, PRSize amount);
H A Drcnetio.cpp76 PRSize amount, const RCInterval& timeout)
81 fd, &accepted, &from, buf, amount, timeout);
126 PRInt32 RCNetStreamIO::Read(void *buf, PRSize amount) argument
127 { return (fd->methods->read)(fd, buf, amount); }
130 void *buf, PRSize amount, PRIntn flags, const RCInterval& timeout)
131 { return (fd->methods->recv)(fd, buf, amount, flags, timeout); }
134 void *buf, PRSize amount, PRIntn flags,
139 fd, buf, amount, flags, &peer, timeout);
145 const void *buf, PRSize amount, PRIntn flags, const RCInterval& timeout)
146 { return (fd->methods->send)(fd, buf, amount, flag
74 AcceptRead( RCIO **nd, RCNetAddr **raddr, void *buf, PRSize amount, const RCInterval& timeout) argument
129 Recv( void *buf, PRSize amount, PRIntn flags, const RCInterval& timeout) argument
133 Recvfrom( void *buf, PRSize amount, PRIntn flags, RCNetAddr* addr, const RCInterval& timeout) argument
144 Send( const void *buf, PRSize amount, PRIntn flags, const RCInterval& timeout) argument
148 Sendto( const void *buf, PRSize amount, PRIntn flags, const RCNetAddr& addr, const RCInterval& timeout) argument
167 Write(const void *buf, PRSize amount) argument
[all...]
H A Drcfileio.h72 virtual PRInt32 Read(void *buf, PRSize amount);
74 virtual PRInt32 Write(const void *buf, PRSize amount);
88 PRSize amount, const RCInterval& timeout);
97 void *buf, PRSize amount, PRIntn flags,
100 void *buf, PRSize amount, PRIntn flags,
103 const void *buf, PRSize amount, PRIntn flags,
106 const void *buf, PRSize amount, PRIntn flags,
H A Drcfileio.cpp73 PRInt32 RCFileIO::Read(void *buf, PRSize amount) argument
74 { return fd->methods->read(fd, buf, amount); }
89 PRInt32 RCFileIO::Write(const void *buf, PRSize amount) argument
90 { return fd->methods->write(fd, buf, amount); }
/vbox/src/libs/xpcom18a4/xpcom/io/
H A DnsIObservableOutputStream.idl61 void onWrite(in nsIOutputStream outStr, in unsigned long amount);
H A DnsUnicharInputStream.cpp100 PRUint32 amount = mLen - mPos; local
101 if (amount > aCount) {
102 amount = aCount;
104 memcpy(aBuf, us + mPos, sizeof(PRUnichar) * amount);
105 mPos += amount;
106 *aReadCount = amount;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw16stdio.c52 _PL_W16StdioWrite( void *buf, PRInt32 amount )
70 _PL_W16StdioRead( void *buf, PRInt32 amount )
74 bp = fgets( buf, (int) amount, stdin );
H A Dw95sock.c201 _PR_MD_RECV(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, argument
214 while ((rv = recv( osfd, buf, amount, osflags)) == -1)
235 _PR_MD_SEND(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, argument
242 while(bytesSent < amount )
244 while ((rv = send( osfd, buf, amount, 0 )) == -1)
266 if (bytesSent < amount)
279 _PR_MD_SENDTO(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, argument
286 while(bytesSent < amount)
288 while ((rv = sendto( osfd, buf, amount, 0, (struct sockaddr *) addr,
311 if (bytesSent < amount)
324 _PR_MD_RECVFROM(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRUint32 *addrlen, PRIntervalTime timeout) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/
H A Dprwin16.h80 typedef PRInt32 (PR_CALLBACK *PRStdinRead)( void *buf, PRInt32 amount);
81 typedef PRInt32 (PR_CALLBACK *PRStdoutWrite)( void *buf, PRInt32 amount);
82 typedef PRInt32 (PR_CALLBACK *PRStderrWrite)( void *buf, PRInt32 amount);
92 _PL_W16StdioWrite( void *buf, PRInt32 amount );
95 _PL_W16StdioRead( void *buf, PRInt32 amount );
H A Dprio.h409 typedef PRInt32 (PR_CALLBACK *PRReadFN)(PRFileDesc *fd, void *buf, PRInt32 amount);
410 typedef PRInt32 (PR_CALLBACK *PRWriteFN)(PRFileDesc *fd, const void *buf, PRInt32 amount);
429 PRFileDesc *fd, void *buf, PRInt32 amount,
432 PRFileDesc *fd, const void *buf, PRInt32 amount,
435 PRFileDesc *fd, void *buf, PRInt32 amount,
438 PRFileDesc *fd, const void *buf, PRInt32 amount,
444 void *buf, PRInt32 amount, PRIntervalTime t);
783 * is an error. No more than 'amount' bytes will be transferred.
789 * PRInt32 amount
809 NSPR_API(PRInt32) PR_Read(PRFileDesc *fd, void *buf, PRInt32 amount);
[all...]
/vbox/src/libs/xpcom18a4/python/test/
H A Dtest_streams.py60 def readStr( self, amount):
61 return self.data.read(amount)
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/io/
H A Dpriometh.c139 PR_IMPLEMENT(PRInt32) PR_Read(PRFileDesc *fd, void *buf, PRInt32 amount)
141 return((fd->methods->read)(fd,buf,amount));
144 PR_IMPLEMENT(PRInt32) PR_Write(PRFileDesc *fd, const void *buf, PRInt32 amount)
146 return((fd->methods->write)(fd,buf,amount));
217 PR_IMPLEMENT(PRInt32) PR_Recv(PRFileDesc *fd, void *buf, PRInt32 amount,
220 return((fd->methods->recv)(fd,buf,amount,flags,timeout));
223 PR_IMPLEMENT(PRInt32) PR_Send(PRFileDesc *fd, const void *buf, PRInt32 amount,
226 return((fd->methods->send)(fd,buf,amount,flags,timeout));
240 PR_IMPLEMENT(PRInt32) PR_RecvFrom(PRFileDesc *fd, void *buf, PRInt32 amount,
243 return((fd->methods->recvfrom)(fd,buf,amount,flag
[all...]
H A Dpripv6.c142 PRFileDesc *fd, const void *buf, PRInt32 amount,
161 fd->lower, buf, amount, flags, tmp_addrp, timeout);
201 PRFileDesc **nd, PRNetAddr **ipv6_raddr, void *buf, PRInt32 amount,
221 sd->lower, nd, ipv6_raddr, buf, amount, timeout);
265 PRInt32 amount, PRIntn flags, PRNetAddr *ipv6addr,
272 fd->lower, buf, amount, flags, &tmp_ipv4addr, timeout);
141 Ipv6ToIpv4SocketSendTo( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) argument
200 Ipv6ToIpv4SocketAcceptRead(PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **ipv6_raddr, void *buf, PRInt32 amount, PRIntervalTime timeout) argument
264 Ipv6ToIpv4SocketRecvFrom(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *ipv6addr, PRIntervalTime timeout) argument
H A Dprsocket.c579 static PRInt32 PR_CALLBACK SocketRecv(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, argument
599 PR_LOG(_pr_io_lm, PR_LOG_MAX, ("recv: fd=%p osfd=%d buf=%p amount=%d flags=%d",
600 fd, fd->secret->md.osfd, buf, amount, flags));
604 rv = (amount < fd->secret->peekBytes) ?
605 amount : fd->secret->peekBytes;
623 if (amount > _PR_PEEK_BUFFER_MAX) {
624 amount = _PR_PEEK_BUFFER_MAX;
626 if (fd->secret->peekBufSize < amount) {
630 fd->secret->peekBufSize = amount;
631 fd->secret->peekBuffer = PR_Malloc(amount);
657 SocketRead(PRFileDesc *fd, void *buf, PRInt32 amount) argument
662 SocketSend(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument
701 SocketWrite(PRFileDesc *fd, const void *buf, PRInt32 amount) argument
769 SocketSendTo( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) argument
817 SocketRecvFrom(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout) argument
843 SocketAcceptRead(PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime timeout) argument
[all...]
H A Dprlayer.c104 static PRInt32 PR_CALLBACK pl_DefRead (PRFileDesc *fd, void *buf, PRInt32 amount) argument
109 return (fd->lower->methods->read)(fd->lower, buf, amount);
113 PRFileDesc *fd, const void *buf, PRInt32 amount)
118 return (fd->lower->methods->write)(fd->lower, buf, amount);
273 PRFileDesc *fd, void *buf, PRInt32 amount,
280 fd->lower, buf, amount, flags, timeout);
285 PRInt32 amount, PRIntn flags, PRIntervalTime timeout)
290 return (fd->lower->methods->send)(fd->lower, buf, amount, flags, timeout);
294 PRFileDesc *fd, void *buf, PRInt32 amount,
301 fd->lower, buf, amount, flag
112 pl_DefWrite( PRFileDesc *fd, const void *buf, PRInt32 amount) argument
272 pl_DefRecv( PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument
283 pl_DefSend( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument
293 pl_DefRecvfrom( PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout) argument
304 pl_DefSendto( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) argument
324 pl_DefAcceptread( PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime t) argument
[all...]
H A Dprfile.c57 static PRInt32 PR_CALLBACK FileRead(PRFileDesc *fd, void *buf, PRInt32 amount) argument
75 ("read: fd=%p osfd=%d buf=%p amount=%d",
76 fd, fd ? fd->secret->md.osfd : 0, buf, amount));
78 rv = _PR_MD_READ(fd, buf, amount);
86 static PRInt32 PR_CALLBACK FileWrite(PRFileDesc *fd, const void *buf, PRInt32 amount) argument
113 while (amount > 0) {
115 ("write: fd=%p osfd=%d buf=%p amount=%d",
116 fd, fd ? fd->secret->md.osfd : 0, buf, amount));
117 temp = _PR_MD_WRITE(fd, buf, amount);
127 amount
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/md/
H A D_macos.h354 extern PRInt32 _PR_MD_WRITE_SYNC(PRFileDesc *fd, void *buf, PRInt32 amount);
380 #define _MD_READ(fd,buf,amount) ReadWriteProc(fd,buf,amount,READ_ASYNC)
381 #define _MD_WRITE(fd,buf,amount) ReadWriteProc(fd,buf,amount,WRITE_ASYNC)
382 #define _MD_WRITE_SYNC(fd,buf,amount) WriteSyncProc(fd,buf,amount)
502 #define _MD_SEND(fd,buf,amount,flags,timeout) macsock_send(fd->secret->md.osfd,buf,amount,flags)
503 #define _MD_SENDTO(fd,buf,amount,flag
[all...]
H A D_unixos.h365 PRNetAddr **raddr, void *buf, PRInt32 amount);
378 extern PRInt32 _MD_read(PRFileDesc *fd, void *buf, PRInt32 amount);
379 #define _MD_READ(fd,buf,amount) _MD_read(fd,buf,amount)
380 extern PRInt32 _MD_write(PRFileDesc *fd, const void *buf, PRInt32 amount);
381 #define _MD_WRITE(fd,buf,amount) _MD_write(fd,buf,amount)
392 #define _MD_ACCEPT_READ(sock, newSock, raddr, buf, amount) _MD_accept_read(sock, newSock, raddr, buf, amount)
414 extern PRInt32 _MD_recv(PRFileDesc *fd, void *buf, PRInt32 amount,
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/beos/
H A Dbnet.c212 _MD_recv (PRFileDesc *fd, void *buf, PRInt32 amount, PRInt32 flags, argument
228 ** Gah, stupid hack. If reading a zero amount, instantly return success.
233 if( 0 == amount ) return(0);
236 while ((rv = recv(osfd, buf, amount, flags)) == -1) {
264 _MD_recvfrom (PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, argument
272 ((rv = recvfrom(osfd, buf, amount, flags,
308 _MD_send (PRFileDesc *fd, const void *buf, PRInt32 amount, PRInt32 flags, argument
323 while ((rv = send(osfd, buf, amount, flags)) == -1) {
360 * optimization; if bytes sent is less than "amount" call
364 if ((!fd->secret->nonblocking) && (rv > 0) && (rv < amount)
384 _MD_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRUint32 addrlen, PRIntervalTime timeout) argument
440 PRInt32 index, amount = 0; local
826 _MD_accept_read(PRFileDesc *sd, PRInt32 *newSock, PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime timeout) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/private/
H A Dpprio.h203 PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime timeout);
223 PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime t);
246 PRInt32 amount,
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/
H A Dos2sock.c423 _PR_MD_RECV(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, argument
430 while ((rv = recv(osfd,buf,amount,flags)) == -1)
453 _PR_MD_SEND(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, argument
460 while ((rv = send(osfd,buf,amount,flags)) == -1)
477 * optimization; if bytes sent is less than "amount" call
481 if ((!fd->secret->nonblocking) && (rv > 0) && (rv < amount)
497 _PR_MD_SENDTO(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, argument
509 while ((rv = sendto(osfd, buf, amount, flags,
534 _PR_MD_RECVFROM(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, argument
542 ((rv = recvfrom(osfd, buf, amount, flag
575 PRInt32 index, amount = 0; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dlayer.c205 PRFileDesc *fd, void *buf, PRInt32 amount,
227 lo, b + readin, amount - readin, flags, timeout);
240 PRFileDesc *fd, const void *buf, PRInt32 amount,
247 logFile, "MySend asking permission to send %d bytes\n", amount);
248 rv = lo->methods->send(lo, &amount, sizeof(amount), flags, timeout);
255 PR_ASSERT(request == amount);
267 rv = amount;
204 MyRecv( PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument
239 MySend( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/
H A Dptio.c106 size_t sfv_len; /* amount of data */
293 * The polling interval defines the maximum amount of time that a thread
336 PRSize amount; /* #3 - size of 'buffer', or */ member in union:pt_Continuation::__anon17248
781 op->arg1.osfd, op->arg2.buffer, op->arg3.amount);
798 op->arg1.osfd, op->arg2.buffer, op->arg3.amount);
801 op->arg1.osfd, op->arg2.buffer, op->arg3.amount, op->arg4.flags);
804 op->arg1.osfd, op->arg2.buffer, op->arg3.amount, op->arg4.flags);
816 PRInt32 tmp_amount = op->arg3.amount;
819 * We want to write the entire amount out, no matter how many
821 * the amount unti
1306 pt_Read(PRFileDesc *fd, void *buf, PRInt32 amount) argument
1333 pt_Write(PRFileDesc *fd, const void *buf, PRInt32 amount) argument
1834 pt_Recv( PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument
1887 pt_SocketRead(PRFileDesc *fd, void *buf, PRInt32 amount) argument
1892 pt_Send( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) argument
1990 pt_SocketWrite(PRFileDesc *fd, const void *buf, PRInt32 amount) argument
1995 pt_SendTo( PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) argument
2067 pt_RecvFrom(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout) argument
2752 pt_AcceptRead( PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime timeout) argument
[all...]
/vbox/src/libs/xpcom18a4/xpcom/ds/
H A DnsTimelineService.cpp318 int amount = indent; local
319 if (amount > MAXINDENT) {
320 amount = MAXINDENT;
322 if (amount < 0) {
323 amount = 0;
327 while (amount--) {

Completed in 107 milliseconds

12