- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for skipBytes (0.07 sec)
-
src/main/java/jcifs/pac/PacDataInputStream.java
* @param n the number of bytes to skip * @return the actual number of bytes skipped * @throws IOException if an I/O error occurs */ public int skipBytes(final int n) throws IOException { return this.dis.skipBytes(n); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacLogonInfo.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.3K bytes - Viewed (0) -
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) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
// Verify length was set (actual behavior depends on implementation) } @Test void testSkipBytes() throws SmbException { int skipAmount = 100; int result = smbRandomAccessFile.skipBytes(skipAmount); assertEquals(skipAmount, result); assertEquals(skipAmount, smbRandomAccessFile.getFilePointer()); } @Test void testReadFully() throws SmbException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
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) -
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) -
android/guava/src/com/google/common/io/ByteArrayDataInput.java
@Override void readFully(byte[] b, int off, int len); // not guaranteed to skip n bytes so result should NOT be ignored // use ByteStreams.skipFully or one of the read methods instead @Override int skipBytes(int n); @CanIgnoreReturnValue // to skip a byte @Override boolean readBoolean(); @CanIgnoreReturnValue // to skip a byte @Override byte readByte(); @CanIgnoreReturnValue // to skip a byte
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 20:25:25 UTC 2024 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
byte[] data = baos.toByteArray(); DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); int bytesSkipped = 0; while (bytesSkipped < 10) { bytesSkipped += in.skipBytes(10 - bytesSkipped); } /* Read in various values in LITTLE ENDIAN FORMAT */ byte[] b = new byte[2]; in.readFully(b); assertEquals(-100, b[0]); assertEquals(100, b[1]);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
@Test public void testSkipBytes() throws IOException { byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 }; PacDataInputStream pdis = createInputStream(data); int skipped = pdis.skipBytes(2); assertEquals(2, skipped); assertEquals(2, pdis.available()); assertEquals(0x03, pdis.readByte()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9.2K bytes - Viewed (0) -
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)