Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 329 for 0xff (0.01 sec)

  1. src/main/java/jcifs/internal/fscc/FileStandardInfo.java

            bufferIndex += 8;
            this.numberOfLinks = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.deletePending = (buffer[bufferIndex] & 0xFF) > 0;
            bufferIndex++;
            this.directory = (buffer[bufferIndex++] & 0xFF) > 0;
            return bufferIndex - start;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#size()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            assertEquals(1 + expectedString.length + 1, used, "Expected exactly one command byte plus OEM string and NUL terminator");
            assertEquals(0x04, buffer[0] & 0xFF, "First byte must be SMB_COM_QUERY_INFORMATION type 0x04");
            // Verify that the string part ends with the null terminator
            assertArrayEquals(expectedString, subArray(buffer, 1, expectedString.length));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/LittleEndianByteArray.java

      static int load32(byte[] source, int offset) {
        // TODO(user): Measure the benefit of delegating this to LittleEndianBytes also.
        return (source[offset] & 0xFF)
            | ((source[offset + 1] & 0xFF) << 8)
            | ((source[offset + 2] & 0xFF) << 16)
            | ((source[offset + 3] & 0xFF) << 24);
      }
    
      /**
       * Indicates that the load and store operations will be very efficient because of use of VarHandle
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/SocketOutputStream.java

            }
    
            off -= 4;
    
            b[off + 0] = (byte) SessionServicePacket.SESSION_MESSAGE;
            b[off + 1] = (byte) 0x00;
            b[off + 2] = (byte) (len >> 8 & 0xFF);
            b[off + 3] = (byte) (len & 0xFF);
    
            out.write(b, off, 4 + len);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NodeStatusResponse.java

        int readRDataWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
            numberOfNames = src[srcIndex] & 0xFF;
            final int namesLength = numberOfNames * 18;
            final int statsLength = rDataLength - namesLength - 1;
            numberOfNames = src[srcIndex] & 0xFF;
            srcIndex++;
            // gotta read the mac first so we can populate addressArray with it
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/util/HexdumpTest.java

            assertEquals("00010203", Hexdump.toHexString(data1, 0, 8)); // 8 chars = 4 bytes
    
            // Test with negative byte values
            byte[] data2 = { (byte) 0xFF, (byte) 0xFE, (byte) 0x80, 0x7F };
            assertEquals("FF", Hexdump.toHexString(data2, 0, 2)); // 2 chars = 1 byte
            assertEquals("FFF", Hexdump.toHexString(data2, 0, 3)); // 3 chars = 1.5 bytes (rounds up to 2)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/UUIDTest.java

                rpcUuid.time_hi_and_version = (short) 0xFFFF;
                rpcUuid.clock_seq_hi_and_reserved = (byte) 0xFF;
                rpcUuid.clock_seq_low = (byte) 0xFF;
                rpcUuid.node = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF };
    
                UUID uuid = new UUID(rpcUuid);
    
                // Act
                String result = uuid.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt

      fun sourceSeesBom() {
        val body = "efbbbf68656c6c6f".decodeHex().toResponseBody()
        val source = body.source()
        assertThat(source.readByte() and 0xff).isEqualTo(0xef)
        assertThat(source.readByte() and 0xff).isEqualTo(0xbb)
        assertThat(source.readByte() and 0xff).isEqualTo(0xbf)
        assertThat(source.readUtf8()).isEqualTo("hello")
      }
    
      @Test
      fun bytesEmpty() {
        val body = body("")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            offset += 8;
            SMBUtil.writeInt8(maxLong, buffer, offset);
            offset += 8;
            SMBUtil.writeInt4(maxInt, buffer, offset);
            offset += 4;
            buffer[offset++] = (byte) 0xFF;
            buffer[offset++] = (byte) 0xFF;
    
            // Decode
            int bytesDecoded = fileStandardInfo.decode(buffer, 0, buffer.length);
    
            // Verify
            assertEquals(22, bytesDecoded);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java

            bufferIndex += 8;
            info.numberOfLinks = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            info.deletePending = (buffer[bufferIndex] & 0xFF) > 0;
            bufferIndex++;
            info.directory = (buffer[bufferIndex++] & 0xFF) > 0;
            this.info = info;
    
            return bufferIndex - start;
        }
    
        int readSmbQueryFileBasicInfoWireFormat(final byte[] buffer, int bufferIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top