Searched defs:bytesToRead (Results 1 - 5 of 5) sorted by relevance

/openjdk7/jdk/src/solaris/demo/jni/Poller/
H A DSimpleServer.java63 private static int bytesToRead; field in class:SimpleServer
83 bytesToRead = Integer.valueOf(ctrlString).intValue();
87 System.out.println("Receiving " + bytesToRead + " bytes from " +
104 while ( bytesRead < bytesToRead ) {
136 while ( bytesRead < bytesToRead ) {
150 if (bytesRead < bytesToRead)
H A DPollingServer.java74 private static int bytesToRead; field in class:PollingServer
104 bytesToRead = Integer.valueOf(ctrlString).intValue();
108 System.out.println("Receiving " + bytesToRead + " bytes from " +
126 while ( bytesRead < bytesToRead ) {
141 if (bytesRead >= bytesToRead) break; // may be done!
154 while ( (cnt < numEvents) && (bytesRead < bytesToRead) ) {
230 while (bytesRead < bytesToRead) {
/openjdk7/jdk/src/windows/native/sun/nio/ch/
H A DWindowsSelectorImpl.c200 long bytesToRead; local
204 ioctlsocket (scinFd, FIONREAD, &bytesToRead);
205 if (bytesToRead == 0) {
209 if (bytesToRead > WAKEUP_SOCKET_BUF_SIZE) {
210 char* buf = (char*)malloc(bytesToRead);
211 recv(scinFd, buf, bytesToRead, 0);
/openjdk7/hotspot/agent/src/os/solaris/proc/
H A Dsaproc.cpp1117 jlong bytesToRead = MIN2(numBytes, usedSize - diff); local
1119 ssize_t bytesRead = pread(classes_jsa_fd, bufPtr, bytesToRead, offset);
1120 if (bytesRead != bytesToRead) {
/openjdk7/jdk/src/macosx/native/com/sun/media/sound/
H A DPLATFORM_API_MacOSX_PCM.cpp703 int bytesToRead = inNumberFrames * device->asbd.mBytesPerFrame; local
704 if (bytesToRead > (int)audioBuffer->mDataByteSize) {
706 bytesToRead = audioBuffer->mDataByteSize / device->asbd.mBytesPerFrame * device->asbd.mBytesPerFrame;
708 int bytesRead = device->ringBuffer.Read(audioBuffer->mData, bytesToRead);
709 if (bytesRead < bytesToRead) {
711 TRACE2("--OutputCallback: !!! UNDERRUN (read %d bytes of %d)!!!\n", bytesRead, bytesToRead);
713 memset((Byte*)audioBuffer->mData + bytesRead, 0, bytesToRead-bytesRead);
714 bytesRead = bytesToRead;

Completed in 936 milliseconds