- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 776 for zeros (0.03 sec)
-
src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java
} @Override protected int writeDataWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dstIndex += this.info.encode(dst, dstIndex); /* 6 zeros observed with NT */ SMBUtil.writeInt8(0L, dst, dstIndex); dstIndex += 6; /* * Also observed 4 byte alignment but we stick * with the default for jCIFS which is 2
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.3K bytes - Viewed (0) -
src/archive/tar/reader.go
if _, err := io.ReadFull(tr.r, tr.blk[:]); err != nil { return nil, nil, err // EOF is okay here; exactly 1 block of zeros read } if bytes.Equal(tr.blk[:], zeroBlock[:]) { return nil, nil, io.EOF // normal EOF; exactly 2 block of zeros read } return nil, nil, ErrHeader // Zero block and then non-zero block } // Verify the header matches a known format. format := tr.blk.getFormat()
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java
assertEquals(0, cmd.readParametersWireFormat(buf, 0, buf.length)); assertEquals(0, cmd.readDataWireFormat(buf, 0, buf.length)); } @ParameterizedTest @CsvSource({ "0, 0", // all zeros "-1, 2147483647", // negative fid, max positive security "12345, 999" // arbitrary numbers }) void toString_includesCorrectHexValues(int fid, int securityInformation) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo); byte[] buffer = new byte[512]; // Fill buffer with non-zero values to ensure padding writes zeros for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) 0xFF; } int written = trans2SetFileInfo.writeDataWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractStreamingHasher.java
/** * This is invoked for the last bytes of the input, which are not enough to fill a whole chunk. * The passed {@code ByteBuffer} is guaranteed to be non-empty. * * <p>This implementation simply pads with zeros and delegates to {@link #process(ByteBuffer)}. */ protected void processRemaining(ByteBuffer bb) { Java8Compatibility.position(bb, bb.limit()); // move at the end
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2SetFileInformation.java
writeInt8(0L, dst, dstIndex); dstIndex += 8; /* Samba 2.2.7 needs ATTR_NORMAL */ writeInt2(0x80 | attributes, dst, dstIndex); dstIndex += 2; /* 6 zeros observed with NT */ writeInt8(0L, dst, dstIndex); dstIndex += 6; /* Also observed 4 byte alignment but we stick * with the default for jCIFS which is 2 */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.3K bytes - Viewed (0) -
src/archive/zip/reader_test.go
// // import ( // "archive/zip" // "bytes" // "io" // "log" // "os" // ) // // type zeros struct{} // // func (zeros) Read(b []byte) (int, error) { // clear(b) // return len(b), nil // } // // func main() { // bigZip := makeZip("big.file", io.LimitReader(zeros{}, 1<<32-1)) // if err := os.WriteFile("/tmp/big.zip", bigZip, 0666); err != nil { // log.Fatal(err) // } //
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Mar 11 22:19:38 UTC 2025 - 56.6K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmSspTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (1) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
} @Test @DisplayName("Should handle null file ID gracefully") void testNullFileId() { // Given byte[] nullFileId = new byte[16]; // All zeros Configuration config = mock(Configuration.class); when(config.getNotifyBufferSize()).thenReturn(8192); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
assertEquals(originalMessage.getFlags(), parsedMessage.getFlags()); assertNull(parsedMessage.getChallenge()); // Should be null if all zeros assertNull(parsedMessage.getTarget()); assertNull(parsedMessage.getContext()); // Should be null if all zeros assertNull(parsedMessage.getTargetInformation()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0)