- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 294 for 0xFF (0.02 seconds)
-
src/main/java/jcifs/util/ServerResponseValidator.java
public void validateSmbHeader(int protocolId, int structureSize, int command) throws SmbException { totalValidations.incrementAndGet(); // Check SMB1 signature if (protocolId == 0x424D53FF) { // 0xFF 'S' 'M' 'B' // SMB1 if (structureSize < 32 || structureSize > 65535) { failedValidations.incrementAndGet();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
} @Test @DisplayName("Should format unknown command") void testToStringUnknownCommand() { testMessage.setCommand(0xFF); String result = testMessage.toString(); assertTrue(result.contains("command=UNKNOWN")); } @Test @DisplayName("Should include all fields in toString")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 39.5K bytes - Click Count (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
int[] index = { 0 }; when(mock.read()).thenAnswer(inv -> { if (index[0] < includeContent.length) { return (int) includeContent[index[0]++] & 0xFF; } return -1; }); when(mock.read(any(byte[].class))).thenAnswer(inv -> { byte[] buffer = inv.getArgument(0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.2K bytes - Click Count (0) -
src/archive/zip/struct.go
mode |= fs.ModeDir } return mode } // SetMode changes the permission and mode bits for the [FileHeader]. func (h *FileHeader) SetMode(mode fs.FileMode) { h.CreatorVersion = h.CreatorVersion&0xff | creatorUnix<<8 h.ExternalAttrs = fileModeToUnixMode(mode) << 16 // set MSDOS attributes too, as the original zip does. if mode&fs.ModeDir != 0 { h.ExternalAttrs |= msdosDir } if mode&0200 == 0 {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue May 28 21:41:09 GMT 2024 - 12.1K bytes - Click Count (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 {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 15.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
public int read() throws IOException { // need oplocks to cache otherwise use BufferedInputStream if (read(this.tmp, 0, 1) == -1) { return -1; } return this.tmp[0] & 0xFF; } /** * Reads up to b.length bytes of data from this input stream into an array of bytes. * * @throws IOException * if a network error occurs */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
* because it specifies addr */ request.addr = addr; /* if addr ends with 255 flag it bcast */ request.isBroadcast = addr.getAddress()[3] == (byte) 0xFF; n = RETRY_COUNT; do { try { send(request, response, RETRY_TIMEOUT); } catch (final IOException ioe) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 17.6K bytes - Click Count (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('=')");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/SID.java
* {@code S-1-5-21-1496946806-2192648263-3843101252-1029}. */ @Override public String toString() { StringBuilder ret = new StringBuilder("S-").append(this.revision & 0xFF).append("-"); if (this.identifier_authority[0] != (byte) 0 || this.identifier_authority[1] != (byte) 0) { ret.append("0x"); ret.append(Hexdump.toHexString(this.identifier_authority, 0, 6));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 16K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
break; case ServerMessageBlock.SMB_COM_TRANSACTION: case ServerMessageBlock.SMB_COM_TRANSACTION2: switch (((SmbComTransaction) request).getSubCommand() & 0xFF) { case SmbComTransaction.NET_SHARE_ENUM: case SmbComTransaction.NET_SERVER_ENUM2: case SmbComTransaction.NET_SERVER_ENUM3:Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30K bytes - Click Count (0)