Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,693 for byte2 (0.02 sec)

  1. src/test/java/jcifs/EncodableTest.java

            );
        }
    
        // Creates a deterministic byte sequence [0,1,2,...,n-1]
        private static byte[] makeSeq(int n) {
            byte[] a = new byte[n];
            for (int i = 0; i < n; i++) {
                a[i] = (byte) i;
            }
            return a;
        }
    
        @ParameterizedTest
        @MethodSource("byteEncodableArgs")
        @DisplayName("encode() copies bytes correctly and returns size")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            when(mockFileInfo.getFileInformationLevel()).thenReturn((byte) FileInformation.FILE_BASIC_INFO);
            when(mockFileInfo.encode(any(byte[].class), anyInt())).thenReturn(50);
    
            trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo);
    
            byte[] setupBuffer = new byte[256];
            byte[] paramBuffer = new byte[256];
            byte[] dataBuffer = new byte[256];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/spnego/SpnegoToken.java

         * @param mechanismListMIC the mechanism list MIC bytes
         */
        public void setMechanismListMIC(final byte[] mechanismListMIC) {
            this.mechanismListMIC = mechanismListMIC;
        }
    
        /**
         * Encodes this SPNEGO token to a byte array
         * @return the encoded token bytes
         */
        public abstract byte[] toByteArray();
    
        /**
         * Parses the provided token bytes to populate this SPNEGO token
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/Base64.java

         * Base-64 encodes the supplied block of data.  Line wrapping is not
         * applied on output.
         *
         * @param bytes The block of data that is to be Base-64 encoded.
         * @return A <code>String</code> containing the encoded data.
         */
        public static String encode(final byte[] bytes) {
            int length = bytes.length;
            if (length == 0) {
                return "";
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. cmd/dummy-data-generator_test.go

    		}
    	}
    	return true, ""
    }
    
    func TestCmpReaders(t *testing.T) {
    	{
    		r1 := bytes.NewReader([]byte("abc"))
    		r2 := bytes.NewReader([]byte("abc"))
    		ok, msg := cmpReaders(r1, r2)
    		if !ok || msg != "" {
    			t.Fatalf("unexpected")
    		}
    	}
    
    	{
    		r1 := bytes.NewReader([]byte("abc"))
    		r2 := bytes.NewReader([]byte("abcd"))
    		ok, _ := cmpReaders(r1, r2)
    		if ok {
    			t.Fatalf("unexpected")
    		}
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

        }
    
        // Test constructor with external hashes
        @Test
        void testConstructorWithExternalHashes() {
            byte[] challenge = new byte[8];
            byte[] ansiHash = new byte[24];
            byte[] unicodeHash = new byte[24];
            NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN", "user", challenge, ansiHash, unicodeHash);
            assertEquals("DOMAIN", auth.getDomain());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

         */
        @Test
        void testReadParametersWireFormat() {
            NetShareEnumResponse response = new NetShareEnumResponse();
            // Parameters: status (2 bytes), converter (2 bytes), numEntries (2 bytes), totalAvailableEntries (2 bytes)
            byte[] buffer = { 0x00, 0x00, // status = 0 (Success)
                    0x12, 0x34, // converter = 0x3412
                    0x02, 0x00, // numEntries = 2
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmContext.java

        private int state = 1;
    
        private final CIFSContext transportContext;
    
        private String targetName;
        private byte[] type1Bytes;
    
        private byte[] signKey;
        private byte[] verifyKey;
        private byte[] sealClientKey;
        private byte[] sealServerKey;
    
        private Cipher sealClientHandle;
        private Cipher sealServerHandle;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                byte[] buffer = new byte[64];
    
                // Structure with specific values in reserved fields
                SMBUtil.writeInt2(24, buffer, 0);
                buffer[2] = 0x01; // Oplock level
                buffer[3] = (byte) 0xAA; // Reserved byte
    
                // Reserved2 field (4 bytes at offset 4)
                buffer[4] = (byte) 0xBB;
                buffer[5] = (byte) 0xCC;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            dst[dstIndex++] = (byte) (val >> 24);
        }
    
        private void writeInt8(long val, byte[] dst, int dstIndex) {
            dst[dstIndex++] = (byte) val;
            dst[dstIndex++] = (byte) (val >> 8);
            dst[dstIndex++] = (byte) (val >> 16);
            dst[dstIndex++] = (byte) (val >> 24);
            dst[dstIndex++] = (byte) (val >> 32);
            dst[dstIndex++] = (byte) (val >> 40);
            dst[dstIndex++] = (byte) (val >> 48);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top