- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 294 for 0xFF (0.02 seconds)
-
src/test/java/jcifs/smb/SpnegoContextTest.java
assertEquals(0, cap.getValue().length, "Optimistic token must be zero-length"); } @ParameterizedTest @ValueSource(bytes = { 0x00, 0x7F, (byte) 0xFF }) @DisplayName("initSecContext throws on invalid token type") void testInitSecContextInvalidTokenType(byte firstByte) throws Exception { SpnegoContext ctx = newContext();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
bufferIndex += 2; this.dataDisplacement = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; this.setupCount = buffer[bufferIndex] & 0xFF; bufferIndex += 2; return bufferIndex - start; } @Override protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.3K bytes - Click Count (0) -
cmd/erasure-metadata-utils_test.go
{"a/b/c/", []int{3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2}}, {"/a/b/c", []int{6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5}}, {string([]byte{0xff, 0xfe, 0xfd}), []int{15, 16, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}}, } // Tests hashing order to be consistent. for i, testCase := range testCases { hashedOrder := hashOrder(testCase.objectName, 16)Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 7.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
@DisplayName("Should not modify destination buffer") void testWriteBytesWireFormatDoesNotModifyBuffer() { // Given byte[] dst = new byte[100]; Arrays.fill(dst, (byte) 0xFF); byte[] originalDst = dst.clone(); // When response.writeBytesWireFormat(dst, 0); // Then assertArrayEquals(originalDst, dst); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 26.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
when(resp.getErrorCode()).thenReturn(0x10B); when(resp.getNotifyInformation()).thenReturn(new ArrayList<>()); setupSmb1(resp, 42); SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0xFF, false); List<FileNotifyInformation> result = sut.watch(); assertNotNull(result); verify(handle, times(1)).markClosed();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (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));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.4K bytes - Click Count (0) -
src/main/java/jcifs/smb1/util/Hexdump.java
ci += n * 3; System.arraycopy(SPACE_CHARS, 0, d, s, n); break; } c[ci++] = ' '; i = src[srcIndex + si] & 0xFF; toHexChars(i, c, ci, 2); ci += 2; if (i < 0 || Character.isISOControl((char) i)) { d[si % 16] = '.'; } else {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessRpcClient.java
StringBuilder sb = new StringBuilder("WITNESS-"); for (int i = 0; i < Math.min(contextHandle.length, 8); i++) { sb.append(String.format("%02X", contextHandle[i] & 0xFF)); } sb.append("-").append(shareName.hashCode()); return sb.toString(); } /** * Checks if the client is connected to the witness service. *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 12.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
void testDifferentFileIds() { // Given byte[] fileId1 = new byte[16]; Arrays.fill(fileId1, (byte) 0x11); byte[] fileId2 = new byte[16]; Arrays.fill(fileId2, (byte) 0xFF); byte[] fileId3 = new byte[16]; for (int i = 0; i < 16; i++) { fileId3[i] = (byte) i; } // When & Then for each file ID testFileIdWriting(fileId1);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0)