Searched refs:bytesToRead (Results 1 - 9 of 9) sorted by relevance

/openjdk7/jdk/src/share/classes/sun/misc/
H A DIOUtils.java56 int bytesToRead;
58 bytesToRead = Math.min(length - pos, output.length + 1024);
59 if (output.length < pos + bytesToRead) {
60 output = Arrays.copyOf(output, pos + bytesToRead);
63 bytesToRead = output.length - pos;
65 int cc = is.read(output, pos, bytesToRead);
H A DResource.java113 int bytesToRead;
115 bytesToRead = Math.min(len - pos, b.length + 1024);
116 if (b.length < pos + bytesToRead) {
117 b = Arrays.copyOf(b, pos + bytesToRead);
120 bytesToRead = b.length - pos;
124 cc = in.read(b, pos, bytesToRead);
/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/jdk/src/share/classes/java/nio/channels/
H A DChannels.java377 int bytesToRead = Math.min((len - totalRead),
379 if (buf.length < bytesToRead)
380 buf = new byte[bytesToRead];
385 bytesRead = in.read(buf, 0, 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;
/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/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/
H A DDecoder.java1925 final int bytesToRead = _octetBufferOffset - _octetBufferStart;
1926 System.arraycopy(_octetBuffer, _octetBufferStart, b, off, bytesToRead);
1927 _octetBufferStart += bytesToRead;
1928 return bytesToRead;

Completed in 55 milliseconds