Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for skipBytes (0.18 sec)

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

                final int domainIdPointer = pacStream.readInt();
    
                // Skip some reserved fields
                pacStream.skipBytes(8);
    
                this.userAccountControl = pacStream.readInt();
    
                // Skip some reserved fields
                pacStream.skipBytes(28);
    
                // Extra SIDs information
                final int extraSidCount = pacStream.readInt();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            assertEquals(2, calls.get());
        }
    
        @Test
        @DisplayName("skipBytes(): advances file pointer for positive values")
        void skipBytes_advancesFP() throws Exception {
            SmbRandomAccessFile raf = newInstance("r", false, false, false);
            assertEquals(0L, raf.getFilePointer());
            int skipped = raf.skipBytes(5);
            assertEquals(5, skipped);
            assertEquals(5L, raf.getFilePointer());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

        }
    
        @ParameterizedTest
        @ValueSource(longs = { 0L, -1L, -10L })
        @DisplayName("Skip returns 0 for zero or negative values")
        void skipReturnsZeroForNegativeOrZero(long skipBytes) throws IOException {
            // Create message with 5 bytes of data
            byte[] data = new byte[] { 10, 20, 30, 40, 50 };
            InputStream in = new ByteArrayInputStream(concat(messageHeader(5), data));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    		return cmp.Compare(rb.off+rb.n, off)
    	})
    	parts := r.buf[skipParts:]
    	if len(parts) > 0 {
    		skipBytes := off - parts[0].off
    		for _, part := range parts {
    			repeat := int(min(part.n-skipBytes, int64(len(p)-n)))
    			memset(p[n:n+repeat], part.b)
    			n += repeat
    			if n == len(p) {
    				return
    			}
    			skipBytes = 0
    		}
    	}
    	if n != len(p) {
    		err = io.ErrUnexpectedEOF
    	}
    	return
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                    throw new SmbException("EOF");
                }
                n += count;
                fp += count;
            } while (n < len);
        }
    
        @Override
        public int skipBytes(final int n) throws SmbException {
            if (n > 0) {
                fp += n;
                return n;
            }
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/ByteStreams.java

          try {
            input.readFully(b, off, len);
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public int skipBytes(int n) {
          try {
            return input.skipBytes(n);
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public boolean readBoolean() {
          try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                if (count < 0) {
                    throw new SmbEndOfFileException();
                }
                n += count;
            } while (n < len);
        }
    
        @Override
        public int skipBytes(final int n) throws SmbException {
            if (n > 0) {
                this.fp += n;
                return n;
            }
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top