- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 344 for 0xff (0.04 sec)
-
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/archive/zip/struct.go
return time.Date( // date bits 0-4: day of month; 5-8: month; 9-15: years since 1980 int(dosDate>>9+1980), time.Month(dosDate>>5&0xf), int(dosDate&0x1f), // time bits 0-4: second/2; 5-10: minute; 11-15: hour int(dosTime>>11), int(dosTime>>5&0x3f), int(dosTime&0x1f*2), 0, // nanoseconds time.UTC, ) } // timeToMsDosTime converts a time.Time to an MS-DOS date and time.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue May 28 21:41:09 UTC 2024 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
byte[] hash = transport.getPreauthIntegrityHash(); assertNotNull(hash); // Modify returned hash if (hash.length > 0) { hash[0] = (byte) 0xFF; } // Get hash again - should be unmodified byte[] hash2 = transport.getPreauthIntegrityHash(); assertNotNull(hash2); // If original has data, verify it wasn't modified
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
@Test @DisplayName("Test decode operation") void testDecode() { byte[] buffer = new byte[1024]; // Fill with basic SMB header structure System.arraycopy(new byte[] { (byte) 0xFF, 'S', 'M', 'B' }, 0, buffer, 0, 4); buffer[4] = 1; // wordCount buffer[7] = 0; // byteCount low buffer[8] = 0; // byteCount high assertDoesNotThrow(() -> response.decode(buffer, 0));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
try (InputStream stream = cache.getInputStream()) { for (int i = 0; i < 256; i++) { int byteValue = stream.read(); assertEquals("Byte at position " + i, i & 0xFF, byteValue); } assertEquals(-1, stream.read()); // End of stream } } @Test public void testStreamReadPartial() throws IOException {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 10.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/BaseEncodingTest.java
try (InputStream decodingStream = encoding.decodingStream(new StringReader(encoded))) { for (int i = 0; i < bytes.length; i++) { assertThat(decodingStream.read()).isEqualTo(bytes[i] & 0xFF); } assertThat(decodingStream.read()).isEqualTo(-1); } } public void testToString() { assertThat(base64().toString()).isEqualTo("BaseEncoding.base64().withPadChar('=')");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
@Test @DisplayName("Test setCommand with various SMB command codes") void testSetCommandWithVariousCodes() { // Test common SMB command codes int[] commandCodes = { 0x00, 0x72, 0x73, 0x74, 0x75, 0xFF }; for (int command : commandCodes) { doNothing().when(messageBlock).setCommand(command); when(messageBlock.getCommand()).thenReturn(command);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
char[] plaintext = "SecureData".toCharArray(); byte[] encrypted = storage.encryptCredentials(plaintext); // Tamper with the encrypted data encrypted[encrypted.length - 1] ^= 0xFF; // Should throw exception due to authentication tag failure assertThrows(GeneralSecurityException.class, () -> { storage.decryptCredentials(encrypted);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
} @Test @DisplayName("Should not modify buffer beyond encoded area") void testEncodeDoesNotModifyBeyondArea() { // Given byte testByte = (byte) 0xFF; java.util.Arrays.fill(buffer, testByte); SrvCopychunk chunk = new SrvCopychunk(1024, 2048, 4096); // When chunk.encode(buffer, startIndex); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
* @return the unsigned byte value as an integer * @throws IOException if an I/O error occurs */ public int readUnsignedByte() throws IOException { return readByte() & 0xff; } /** * Reads an unsigned 32-bit integer value. * @return the unsigned integer value as a long * @throws IOException if an I/O error occurs */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0)