Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for readFully (0.08 sec)

  1. src/main/java/jcifs/pac/PacDataInputStream.java

        }
    
        /**
         * Reads bytes into the specified array.
         * @param b the byte array to read into
         * @throws IOException if an I/O error occurs
         */
        public void readFully(final byte[] b) throws IOException {
            this.dis.readFully(b);
        }
    
        /**
         * Reads bytes into the specified array at the given offset.
         * @param b the byte array to read into
         * @param off the start offset in the array
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        }
    
        if (isMasked) {
          // Read the masking key as bytes so that they can be used directly for unmasking.
          source.readFully(maskKey!!)
        }
      }
    
      @Throws(IOException::class)
      private fun readControlFrame() {
        if (frameLength > 0L) {
          source.readFully(controlFrameBuffer, frameLength)
    
          if (!isClient) {
            controlFrameBuffer.readAndWriteUnsafe(maskCursor!!)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            } while (len > 0 && n == r);
    
            return (int) (fp - start);
        }
    
        @Override
        public final void readFully(final byte b[]) throws SmbException {
            readFully(b, 0, b.length);
        }
    
        @Override
        public final void readFully(final byte b[], final int off, final int len) throws SmbException {
            int n = 0, count;
    
            do {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

                }
            }).when(smbFile).send(any(SmbComReadAndX.class), any(SmbComReadAndXResponse.class));
    
            smbRandomAccessFile.readFully(buffer);
            assertArrayEquals(new byte[] { 10, 20, 30, 40, 50 }, buffer);
            // Note: There appears to be a bug in the implementation where readFully
            // incorrectly updates the file pointer twice
            assertEquals(10, smbRandomAccessFile.getFilePointer());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            byte[] buffer = new byte[4];
            pdis.readFully(buffer);
            assertArrayEquals(data, buffer);
        }
    
        @Test
        public void testReadFullyWithOffset() throws IOException {
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            PacDataInputStream pdis = createInputStream(data);
            byte[] buffer = new byte[6];
            pdis.readFully(buffer, 1, 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        }
    
        @Test
        @DisplayName("readFully(): throws SmbEndOfFileException on premature EOF")
        void readFully_throws_onEOF() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
            doReturn(-1).when(raf).read(any(byte[].class), anyInt(), anyInt());
            assertThrows(SmbEndOfFileException.class, () -> raf.readFully(new byte[4]));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

        }
    
        @Override
        public void readFully(byte[] b) {
          try {
            input.readFully(b);
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public void readFully(byte[] b, int off, int len) {
          try {
            input.readFully(b, off, len);
          } catch (IOException e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  8. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

          )
    
        private val CRLF = "\r\n".encodeUtf8()
    
        @Throws(IOException::class)
        private fun BufferedSource.readData(data: Buffer) {
          data.writeByte('\n'.code)
          readFully(data, indexOfElement(CRLF))
          select(options) // Skip the newline bytes.
        }
    
        @Throws(IOException::class)
        private fun BufferedSource.readRetryMs(): Long {
          val retryString = readUtf8LineStrict()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
            }
        }
    
        @Override
        public final void readFully(final byte b[]) throws SmbException {
            readFully(b, 0, b.length);
        }
    
        @Override
        public final void readFully(final byte b[], final int off, final int len) throws SmbException {
            int n = 0, count;
    
            do {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/PacSignature.java

                    this.checksum = new byte[12];
                    break;
                default:
                    this.checksum = new byte[bufferStream.available()];
                    break;
                }
                bufferStream.readFully(this.checksum);
            } catch (final IOException e) {
                throw new PACDecodingException("Malformed PAC signature", e);
            }
        }
    
        /**
         * Gets the checksum type of this signature.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top