Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,352 for 1byte (0.99 sec)

  1. guava/src/com/google/common/hash/LittleEndianByteArray.java

       *
       * <p>This abstraction allows us to use single-instruction load and put when available, or fall
       * back on the slower approach of using Longs.fromBytes(byte...).
       */
      private interface LittleEndianBytes {
        long getLongLittleEndian(byte[] array, int offset);
    
        void putLongLittleEndian(byte[] array, int offset, long value);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/ByteEncodableTest.java

            // Verify content
            assertArrayEquals(new byte[] { (byte) 0xFF, 0x01, 0x02, 0x03, 0x00 }, dest, "Encoded bytes should be placed at the correct offset");
        }
    
        @Test
        void testEncodeZeroLength() {
            // Test encoding with zero length
            byte[] data = { 0x01, 0x02, 0x03 };
            ByteEncodable encodable = new ByteEncodable(data, 0, 0);
            byte[] dest = new byte[3];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java

     */
    public class Smb2QueryInfoRequest extends ServerMessageBlock2Request<Smb2QueryInfoResponse> implements RequestWithFileId {
    
        private byte infoType;
        private byte fileInfoClass;
        private final int outputBufferLength;
        private int additionalInformation;
        private int queryFlags;
        private byte[] fileId;
        private Encodable inputBuffer;
    
        /**
         * Constructs a SMB2 query info request with the specified configuration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

        @DisplayName("Test writeUTime with zero time")
        void testWriteUTimeWithZeroTime() {
            byte[] dst = new byte[4];
    
            SMB1SigningDigest.writeUTime(mockConfig, 0L, dst, 0);
    
            assertEquals((byte) 0xFF, dst[0]);
            assertEquals((byte) 0xFF, dst[1]);
            assertEquals((byte) 0xFF, dst[2]);
            assertEquals((byte) 0xFF, dst[3]);
        }
    
        @Test
        @DisplayName("Test writeUTime with max time")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                SmbTreeHandleImpl sh = newTreeHandle(false); // force non-SMB2 path to avoid server-side branch
                SmbTreeHandleImpl dh = newTreeHandle(false);
    
                byte[][] buffers = new byte[][] { new byte[8], new byte[8] };
    
                when(src.toString()).thenReturn("smb://src");
                when(dest.toString()).thenReturn("smb://dest");
    
                // Act + Assert
                SmbException ex =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/net/InetAddresses.java

          return false;
        }
    
        byte[] bytes = ip.getAddress();
    
        if ((bytes[8] | (byte) 0x03) != (byte) 0x03) {
    
          // Verify that high byte of the 64 bit identifier is zero, modulo
          // the U/L and G bits, with which we are not concerned.
          return false;
        }
    
        return (bytes[9] == (byte) 0x00) && (bytes[10] == (byte) 0x5e) && (bytes[11] == (byte) 0xfe);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Utf8.java

            if (byte2 > (byte) 0xBF
                // Check that 1 <= plane <= 16. Tricky optimized form of:
                // if (byte1 > (byte) 0xF4
                //     || byte1 == (byte) 0xF0 && byte2 < (byte) 0x90
                //     || byte1 == (byte) 0xF4 && byte2 > (byte) 0x8F)
                || (((byte1 << 28) + (byte2 - (byte) 0x90)) >> 30) != 0
                // Third byte trailing-byte test
                || bytes[index++] > (byte) 0xBF
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        void testReadLengthMaximum() {
            byte[] src = { (byte) 0x00, (byte) 0x01, (byte) 0xFF, (byte) 0xFF };
            int length = SessionServicePacket.readLength(src, 0);
    
            assertEquals(0x01FFFF, length);
        }
    
        @Test
        @DisplayName("readLength should handle zero length")
        void testReadLengthZero() {
            byte[] src = { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            byte[] maxGuid = new byte[16];
            Arrays.fill(maxGuid, (byte) 0xFF);
    
            ValidateNegotiateInfoRequest request =
                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, maxGuid, DEFAULT_SECURITY_MODE, defaultDialects);
    
            byte[] buffer = new byte[request.size()];
            request.encode(buffer, 0);
    
            // Verify max GUID
            byte[] extractedGuid = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

        private static class TestServerMessageBlock extends ServerMessageBlock {
            private byte[] paramWords;
            private byte[] bytes;
    
            TestServerMessageBlock() {
                super();
                this.paramWords = new byte[0];
                this.bytes = new byte[0];
            }
    
            void setParamWords(byte[] paramWords) {
                this.paramWords = paramWords;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top